prefilledVariables
Looking at documentation located at https://docs.typebot.io/editor/variables
We are starting a chat from V1 API
data: '{"message":"dsadsa","isStreamEnabled":true,"isOnlyRegistering":true,"prefilledVariables":{"number":"5511888888888","name":"Rafael Ribeiro","ticketId":"5118","contactId":"24729","token_wpp":"sdsadsadsadsadas","protocol":"7503","email":"[email protected]","firstMessage":"dsadsa"}}'
And creating a variables with same name into the flow, but it comes undefined?
Typebot Docs
Variables - Typebot Docs
23 Replies
Can you provide more details? What’s the error you see exactly?
variables comes undefined
Provide a reproduction, I can't reproduce, it works fine on my end 🙂


data: '{"message":"dsadsa","isStreamEnabled":true,"isOnlyRegistering":true,"prefilledVariables":{"number":"5511888888888","name":"Rafael Ribeiro","ticketId":"5118","contactId":"24729","token_wpp":"sdsadsadsadsadas","protocol":"7503","email":"[email protected]","firstMessage":"dsadsa"}}'
Self-hosted and typebot.io same
Tell me how I can reproduce because I don't understand what you are showing
WhatsApp runtime can't have prefilled variables
This is our POST data... sent to typebot API to start a session, with prefilled variables

This is our typebot

This is the answer

comes undefined
Remove the first group Inicializar, it is useless here
Yes, we removed and has the same result

Using POSTMAN...
get the session and starts variables

Empty data on variables

What I m doing wrong?
On hosted version from github, it stop working on versions above 2.25
Delete ‘isOnlyRegistering’ from the body
It should fix it
But indeed it looks like there's a bug when using isOnlyRegistering option
I removed but same error... on postman, same error too
Just tried this simple bot: https://app.typebot.io/typebots/clypup5mw000aitzqofyw30l0/edit
Editor
Create and publish conversational forms that collect 4 times more answers and feel native to your product
The variables are prefilled on startChat, but becomes unavaiable on next steps... like continueChat