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

# Start Preview Chat

> Endpoint to start a preview chat

### Parameters

<ParamField path="typebotId" type="string">
  typebotId: The public ID of the bot to start a preview chat for.
</ParamField>

## Response Description

Below you will see the description of the function start preview chat.

<ResponseField name="sessionId" type="string" required>
  Unique identifier of the preview session.
</ResponseField>

<ResponseField name="typebot" type="object" required>
  The Bot information setted.

  <Expandable title="typebot properties">
    <ResponseField name="id" type="string" required>
      Unique identifier for bot.
    </ResponseField>

    <ResponseField name="theme" type="any">
      The visual appearance information of the bot.
    </ResponseField>

    <ResponseField name="settings" type="any">
      The pre settings information of the bot.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="messages" type="object[]" required>
  The messages content and information in the bot session.

  <Expandable title="messages properties">
    <ResponseField name="id" type="string" required>
      Unique identifier for the messages of the session.
    </ResponseField>

    <ResponseField name="type" type="string">
      The format of the message sent.
    </ResponseField>

    <ResponseField name="content" type="any">
      The content of the message sent.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="input" type="object{}" required>
  The bot input informations.

  <Expandable title="input properties">
    <ResponseField name="id" type="string" required>
      Unique identifier for the inputs of the session.
    </ResponseField>

    <ResponseField name="outgoingEdgeId" type="string">
      Unique identifier of the edge that leads out from a specific input block in your bot flow.
    </ResponseField>

    <ResponseField name="type" type="string">
      The type of content sent.
    </ResponseField>

    <ResponseField name="options" type="string">
      The type of content sent.

      <Expandable title="options properties">
        <ResponseField name="variableId" type="object">
          The unique identifier of the variable that will store the user's selection from those options.
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>
