Log in
Log into community
Share feedback, ideas and get community help
Most posts
Powered by
Hall
Home
Members
PabloDocarmo
P
PabloDocarmo
Offline
, last seen 3 months ago
Joined September 13, 2024
Contributions
Comments
Replies
P
PabloDocarmo
10 months ago
·
startChat prefilledVariables
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
P
PabloDocarmo
7 months ago
·
End of flow
How to identify the end of the dialog flow programmatically?
2 comments
g
M