Stergios
TTypebot
•Created by Stergios on 6/14/2024 in #help-and-questions
Sending an array variable via the HTTP request block
Hi,
any idea how we can send arrays via the webhook body?
For example, this custom body does not work (Error 500) if {{var}} is set an array, such as ["A", "B", "C"] in a previous block
{
"input": {{var}}
}
I've examined my endpoint logs and it seems that the request does sends an empty body, when {{var}} is an array. I've also tried putting quotes before and after the variable -
i.e.,
"{{var}}", still this did not work.
If you use a typical string variable, such as "A B C", the call just works.
6 replies
TTypebot
•Created by Stergios on 2/2/2024 in #help-and-questions
Persistent menu button action
Hi!
Is there a way to have some type of persistent menu button in the UI, and whenever you click on it the bot navigates the user to a specific block?
This could work by capturing a click in the parent website, and then utilizing a Typebot command to 'force' send a specific keyword (e.g. '/TRIGGER_PATH_A'), using a JS command similar to the below one:
Typebot.setInputValue(...) <- but this command just prefills the user input without actually submitting/sending it
(as explained correctly in documentation https://docs.typebot.io/deploy/web/libraries/html-javascript#commands, so it behaves more like like a shortcut...)
Any idea how we could send the user to a specific path through clicking on a static UI element? I think this could significantly enhance the conversational UX in numerous ways @Baptiste. Maybe I am missing something 🙂
In any case, thanks in advance for any help/ideas!
3 replies