Skip to main content
In this guide you will replicate the flow from Your First Skill, but using an AI Agent node to request and store structured data from the user.
1

Drag an AI Agent node

From the start node, drag a connection and choose the AI Agent node. In the instruction field paste:
ai-agent.txt
You must ask the user for their name and email address.

When the user provides their name and email, end the interaction with the schema in JSON format:

{"name": [name], "email": [email]}
All our AI Agents can end the interaction with a structured format that saves the information in memory. More details in the variables guide.
2

Save the response

In the lower section of the node configuration, type userData in the Save response as field. This will store the output JSON in memory under that key.
3

Connect a text node

From the AI node’s output, connect a text node with the following content:
texto.txt
Welcome, {{$memory.userData.name}}. Your email is {{$memory.userData.email}}
This text uses the userData memory variable to personalize the response with the data provided by the agent.
4

Test it

In the upper-right corner, click Test. Interact with the flow from the tester or via WhatsApp to verify that the AI Agent requests the data and that the text node displays the stored information.
Make sure the AI Agent node saves the response as userData so the text node can access the data.