Where do I get the session_id from?

the docs and website mention using a session_id in the API like:

where do I get the session_id from?
i’m using rasa

1 Like


The session_id can be generated be generated by the developer, I recommend to use a random GUID(In python can be generated using the uuid package).

Especially for rasa:
You should use the sender ID which is hold at the tracker object.
We also implemented an SDK which handles it automatically.

Link to the SDK:

Here is the direct refference to the code:

coco_resp = coco.exchange(
    user_input=tracker.latest_message.get("text", None),

Feel free to ask more questions,

I saw at the readme file of the repo you posted here that I can just install coco-rasa lib by using pip.
So it means I can use that without cloning the code at the repo, right?

Sure :slight_smile:!