1. Home
  2. Actions
  3. “Send Text” Action With Session Value
  1. Home
  2. Advanced features
  3. “Send Text” Action With Session Value

“Send Text” Action With Session Value

Content

Imagine that you asked a user for his or her name and email address, and you want to use this information in your message. Or simply reuse the user input in a message. This is exactly what the “Send Text” Action does.

Note : If you want to know more about how to store values in Sessions, take a look at this article.

Demo

For this demo, we have the following scenario:

  • User is asked for his or her name and the information is stored in a session value named “Name”
  • Then the user is asked for an email address (and the information is stored in a session value named “email”)
  • Lastly, the chatbot sends a “thank you” message

Details

In order to use a session value, you can use the following syntax:

  • {{@message}} to reuse the user’s last message
  • {{@session.[session_name]}} to reuse the [session_name] value. For example : {{@session.email}} 

Was this article helpful?

Related Articles

Need Support?
Can’t find the answer you’re looking for? Don’t worry we’re here to help!
More help