Skip to main content
POST
/
v1
/
sessions
/
{sessionId}
/
continueChat
Continuar chat
curl --request POST \
  --url https://mozbot.mozartfintech.com/api/v1/sessions/{sessionId}/continueChat \
  --header 'Content-Type: application/json' \
  --data '
{
  "message": {
    "type": "text",
    "text": "<string>",
    "attachedFileUrls": [
      "<string>"
    ]
  },
  "textBubbleContentFormat": "richText"
}
'
{
  "lastMessageNewFormat": "<string>",
  "messages": [
    {
      "id": "<string>",
      "type": "text",
      "content": {
        "type": "richText",
        "richText": "<any>"
      }
    }
  ],
  "input": {
    "id": "<string>",
    "outgoingEdgeId": "<string>",
    "type": "text input",
    "options": {
      "labels": {
        "placeholder": "<string>",
        "button": "<string>"
      },
      "variableId": "<string>",
      "isLong": true,
      "attachments": {
        "isEnabled": true,
        "saveVariableId": "<string>",
        "visibility": "Auto"
      }
    },
    "prefilledValue": "<string>",
    "runtimeOptions": {
      "paymentIntentSecret": "<string>",
      "amountLabel": "<string>",
      "publicKey": "<string>"
    }
  },
  "clientSideActions": [
    {
      "type": "scriptToExecute",
      "scriptToExecute": {
        "content": "<string>",
        "isCode": true,
        "args": [
          {
            "id": "<string>",
            "value": "<string>"
          }
        ]
      },
      "lastBubbleBlockId": "<string>",
      "expectsDedicatedReply": true
    }
  ],
  "logs": [
    {
      "status": "<string>",
      "description": "<string>",
      "details": "<any>"
    }
  ],
  "dynamicTheme": {
    "hostAvatarUrl": "<string>",
    "guestAvatarUrl": "<string>"
  },
  "progress": 123
}

Path Parameters

sessionId
string
required

El ID de sesión que obtuvo de la respuesta startChat.

Body

application/json
message
object
textBubbleContentFormat
enum<string>
default:richText
Available options:
richText,
markdown

Response

Successful response

messages
(Texto · object | Imagen · object | Video · object | Audio · object | Incrustar · object | Incrustación personalizada · object)[]
required
lastMessageNewFormat
string

El mensaje enviado es validado y formateado en el backend. Por ejemplo, si para una entrada de fecha respondiste algo como mañana, el backend lo convertirá a una cadena de fecha. Este campo devuelve el mensaje formateado.

input
object
clientSideActions
(Script para ejecutar · object | Redirigir · object | Chatwoot · object | Google Analytics · object | Esperar · object | Establecer variable · object | Stream OpenAI · object | Ejecutar webhook · object | Inject start props · object | Init Pixel · object | Exec stream · object | Ejecutar código · object)[]

Acciones a ejecutar en el lado del cliente

logs
object[]

Registros que se guardaron durante la última ejecución

dynamicTheme
object

Si el mozbot contiene avatares dinámicos, dynamicTheme devuelve las nuevas URL de los avatares cada vez que se actualizan sus variables.

progress
number

Si la barra de progreso está habilitada, este campo devolverá un número entre 0 y 100 que indica el progreso actual basado en el camino más largo restante del flujo.