Set Session ID
Set Session ID assigns an identifier to the user’s session. The components in the flow that store or read the message history, such as chat memory or agents, use that identifier. With it, each user keeps their own history and the agent remembers what was said in earlier messages.
When to use it
- Make an assistant remember what each customer told it before, even when they write from an external channel.
- Keep each user’s history apart when many people use the same flow at the same time.
- Keep the context of an open case for several days by using its number as the identifier.
Configuration
| Field | What it does |
|---|---|
| Session ID (required) | The session identifier. It can be fixed text or a value from the previous step, such as the email, the phone or the customer number. |
To set a different identifier for each item of a list, use Batch Mode.
Output
- Session ID Set: a message with the identifier that has been set. You can use it to check the value or pass it to other components.
Example
Your Telegram assistant answers questions about orders. At the start of the flow, Set Session ID takes each user’s chat identifier. If a customer asks “and when will it arrive?”, the agent knows which order they mean because it remembers that same customer’s previous message.
Good practices
- Place it at the start of the flow, before memory and agents.
- Don’t use the same identifier for different users: they would share their history.