anyone know if you can capture the last user messa...
# 🌎general
m
anyone know if you can capture the last user message (string) off the start of the bot and store it in a variable? help would be much appreciated
e
Hey @millions-motorcycle-83398 you can do that by using a Execute Code card with the code:
workflow.myVariable = event.preview
It will assign to the variable the last input from the user
But beware that they could type in anything and it would be saved to the variable still
You could have a confirmation card to check if that's their actual name, or ideally you would use a Name capture card
But the name capture would require that the bot asks something first
m
Yep. I’m looking at using this like capturing the last message and sending that message to a zapier -> Google sheets for review
@early-train-33247
e
I would recommend creating intents or using an AI Task to check what the user has said
And if it's in the desired format you proceed with the zapier request