Share feedback, ideas and get community help

Home
Members
PabloDocarmo
P
PabloDocarmo
Offline, last seen 3 months ago
Joined September 13, 2024
Hi,

I'm trying to use the TypeBot API to start the image.
I need to use the values ​​of the variables from prefilledVariables (/v1/typebots/{public Id}/startChat) in the bot flow.

body:

{
"isOnlyRegistering": false,
"message":"oi",
"prefilledVariables": {
"name": "john",
"email": "john@gmail.com"
}
}

Response:

{
"sessionId": "clstswkr9006baes42ue3l6uo",
"typebot": {
"id": "clssyfxgc0011dour5pthdngn",
"theme": {},
"settings": {
"general": {
"isInputPrefillEnabled": true,
"isHideQueryParamsEnabled": true,
"rememberUser": {
"isEnabled": false
}
}
}
},
"messages": [
{
"id": "s3tdlo432udonb2eh31bsk7s",
"type": "text",
"content": {
"richText": [
{
"type": "p",
"children": [
{
"text": "Teste "
},
{
"type": "inline-variable",
"children": []
}
]
}
]
}
}
]
}


I can't display the values ​​of the variables.

Where am I going wrong?

Another question: Is it possible to create a variable with the sessionId value within the flow?
16 comments
J
P
B
g
How to identify the end of the dialog flow programmatically?
2 comments
g
M