> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zazubot.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How-to

### How to find my `typebotId`

If you'd like to execute the zazubot in preview mode, you will need to provide the ID of the building zazubot available in the editor URL:

<Frame>
  <img src="https://mintcdn.com/zazubot/jkWiMkcCk4qiEvi7/images/api/typebotId.png?fit=max&auto=format&n=jkWiMkcCk4qiEvi7&q=85&s=fb1544e7f8a361563e4e3932336abdca" alt="Get zazubot  ID" width="2062" height="1245" data-path="images/api/typebotId.png" />
</Frame>

### How to find my `publicId`

For published zazubot execution, you need to provide the public zazubot ID available here:

<img src="https://mintcdn.com/zazubot/jkWiMkcCk4qiEvi7/images/api/publicId.png?fit=max&auto=format&n=jkWiMkcCk4qiEvi7&q=85&s=7c966d7dae8cce2e9dd0cae3e19d3754" alt="Get zazubot  ID" width="1898" height="1158" data-path="images/api/publicId.png" />

### How to find my `workspaceId`

In your workspace dashboard, head over to `Settings & Members > Workspace > Settings` and copy the workspace ID

### How to handle stream

If you enabled stream, whenever a AI message should be streamed, you will receive that kind of JSON response:

```json theme={null}
{
  "messages": [],
  "clientSideActions": [
    {
      "type": "stream",
      "stream": true,
      "expectsDedicatedReply": true
    }
  ]
}
```

The bot is ready to accept the message streaming. You now need to send the following query:

```sh theme={null}
curl -X POST  https://hi.zazubot .com/api/v2/sessions/{sessionId}/streamMessage
```

Where `{sessionId}` should be replaced by the session ID you got from the start chat response.

This endpoint will send Server-Sent events with all the information to display the streamed message.

Once it is done, you can contine the flow by sending a [continue chat request](./chat/continue-chat) with the streamed message as the message content.
