Cookies allow storing arbitrary string data against a unique calling identifier, like caller ID or username. They mimic web cookies, but are stored in the database.
Usage:
There are three main nodes: Get Cookie, Set Cookie, and Delete Cookie.
Example:
Scenario: Check if a cookie exists for incoming message. If yes, welcome back; if not, prompt for name and save in a cookie.

Flow:
- Get Cookie Node:

-
Retrieves a cookie based on its name.
-
If found, goes to Found transition; else, Not Found.
- Prompt Node:

-
Collects information (e.g., name) from sender.
-
Stores the name in Flow Parameter.
-
Set Cookie Node:
- Sets a cookie for the collected name.
-
Greet Node:

- Greets the person using the collected name.
Example Execution:
-
First Time:
-
Cookie doesn't exist.
-
Prompts for name.
-
Stores name in Flow Parameter.
-
Sets cookie with the name.
-
Greets the person.
-
-
Subsequent Times:
-
Cookie exists.
-
Retrieves the cookie.
-
Greets using the stored name.
-
Follow these steps to implement cookie functionality effectively in your flow.