Matchphrase Format for Parsing

The basic format for parsing information is

|parse(‘template’) as variable|

|parse(‘template’) into attribute|

Or you can combine the two:

|parse(‘template’) as variable into attribute|

Where ‘template’ is the parsing template (a list of available templates is below) and variable is a temporary name and attribute is either an attribute you’ve created or a Core Attribute.

Some examples

|parse(‘letters_latin’) as my_pet into|


|parse(‘email_address’) as this-email into|

Inside the matchphrase, what comes before and after the parse instruction is important too because it determines if the trigger fires and of course if the audience has provided the correct information your project expects. For example:

my team is |parse(‘team_names’) as thisTeam|


Or for example this matchphrase will parse a decimal number as kilograms if it’s in the format “My weight is 89.7kg”. Note that “My weight is 90kg” would also be parsed and stored as 90.0 even though the audience member sent their weight as an Integer.

My weight is |parse(‘decimal’) as MyWeight|Kg

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request