Hi, why prefilled variables doesn´t work anymore?
I have created my vars in the typebot flow.
First test:
In my node backend:
const ocontact: any = {
ticketId: '11',
name: 'test',
pushName: 'test',
number: '111',
};
const reqData = {
typebot: typebotSession.name,
prefilledVariables: ocontact,
};
const { data } = await axios.post(typebotSession.url, reqData);
And, no var is setted in the typebot flow.
Second test:
curl --request POST --url
https://typebot.io/api/v1/typebots/teste-ticket-x2ubdn5/startChat --header 'Content-Type: application/json' --data '{
"prefilledVariables": {
"name": "Baptiste"
}
}'
{"sessionId":"clxrm1h1w013fg70wamgsa3eo","typebot":{"id":"clxrlelma003jhgag1x2ubdn5","theme":{},"settings":{"general":{"isBrandingEnabled":true,"isInputPrefillEnabled":true}}},"messages":[{"id":"b96c4dz8ldbhhez8o0d1ah5v","type":"text","content":{"type":"richText","richText":[{"type":"p","children":[{"text":"Seu numero é:"},{"type":"inline-variable","children":[]},{"text":" "}]},{"type":"p","children":[{"text":"Seu nome é: "},{"type":"inline-variable","children":[]}]},{"type":"p","children":[{"text":"Teste nome é: "},{"type":"inline-variable","children":[]}]},{"type":"p","children":[{"text":"Seu ticket é: "},{"type":"inline-variable","children":[]}]}]}}]}