Back to Blog

How to store or save parameters

design capture email

Flow.ai allows you to extract data from conversations. To extract data you can use entities or the Trigger “any text”. Within the “Try it out” window on top you will see the extracted data and corresponding parameter.

capture email

When your parameter is recognized you can store or save it so that you can use that parameter later on in your design. That can be useful when you want to:

The code below shows an example of how to store the parameter “email”. If you’re using other variable names, make sure to adjust the name in the action code below.

async payload => {
	// Check if the param "email" exists
	if(Array.isArray(payload.params.email)) {
		
	// Param exists, let's store it so we can use it later
	await store.save('email',payload.params.email[0].value)
	}
}
Get StartedContact us