Share feedback, ideas and get community help

Updated last month

Dynamic data buttons

Hey, I've recently encountered a problem with Dynamic data in buttons. No matter what I try (set the element as text, code, etc) it always results in one bubble with text. Instead of multiple bubbles like it used to. Tried it on my older flows (which used to work) and I get the same issue.

Has anyone else gotten that problem?
Attachment
image.png
8
A
S
30 comments
EDIT: I think i understand where the bug comes from:


Previously in scritps we couldn't do
Plain Text
setVariable('myVar', value)

We had to do
Plain Text
setVariable('myVar', `${value}`)



So from the script block when I use the value directly, it works, but when I use the second one It doesn't work anymore. I think that setVariable still uses the old format?
The same here. Help....
I'm having the same problem...
My app is broken in production because of this issue. Help!!!
I'm having the same problem in production. We need this adjustment urgently.
The same here, it never had a problem @Baptiste
Attachment
image.png
Here, same issue
Bonjour 👋 à vous tous je suis vraiment désolé je suis perdu 😞
J’ai besoin de vous

HELP 🚨🚨 👌👌 Comment supprimer le mot Typebot une fois avoir payé sur mon WhatsApp pour mettre mon nom à la place ?
Merci de votre retour, c’est très urgent #help-and-questions
#urgent
yes, see issues for past 2-3 days
Is potentially fixed now. Can you try again and let me know?
Not yet for me
Attachments
image.png
image.png
Now it worked! Thanks @Baptiste
Attachment
image.png
I have the same problem.

I am generating a topics list with OpenAI assistant.

I get this :

["Comment les migrations climatiques redéfinissent-elles les relations géopolitiques entre les États ?", "En quoi l'art et la littérature peuvent-ils servir de vecteurs de compréhension des enjeux migratoires contemporains ?", "Quels sont les impacts des politiques migratoires sur l'intégration des populations réfugiées dans les sociétés d'accueil ?"]

I save the answer to a new variable, I chose this variable to display dynamic button to the next bloc and I only get 1 button with the whole list.
what happens ? I don't understand why it works with predefined list or script output list but not with open ai output list.
I am also confused about that question
I have the same scenario where i convert data via OpenAI and pass the array but I get a long name in a button.
I absolutely need this problem to be solved to lauch my bot so...Maybe a script could help ?
Sorry I forgot to update you guys you can use a script that does:
Plain Text
let button_options = [{{button_option_1}},{{button_option_2}}]
setVariable("button_options", button_options)


in the meantime
How do I implement this ?

I have an Api which has a response in a nested array I want to pass that array as a button.

I am not a developer so don't understand that much code.
I can do simple HTTP requests but the code is where I lack knowledge
Save your array into a variable in the HTTP block, that should already be enough?
You should then simply be able to use it in the buttons block.
If not it may be that it gets saved as a text instead.
In that case you can ask ChatGPT to write the code to reconvert it into an array.
Just make sure to tell it that « let myVarInsideCode = {{myOutsideVar}»
And that « setVariable("myOutsideVar2", myVarInsideCode» is to saved it to access it outside of the code block.


Also make sure to execute the script block on the server, so untick the execute script on client
Idk if that’s clear it’s 7am rn haha
Plain Text
{
  "statusCode": 200,
  "data": {
    "data": {
      "slots": {
        "2024-10-28": [
          {
            "time": "2024-10-28T15:00:00.000Z"
          },
          {
            "time": "2024-10-28T15:30:00.000Z"
          },
          {
            "time": "2024-10-28T16:00:00.000Z"
          },
          {
            "time": "2024-10-28T16:30:00.000Z"
          }
        ],
        "2024-10-29": [
          {
            "time": "2024-10-29T15:00:00.000Z"
          },
          {
            "time": "2024-10-29T15:30:00.000Z"
          },
          {
            "time": "2024-10-29T16:00:00.000Z"
          },
          {
            "time": "2024-10-29T16:30:00.000Z"
          }
        ]
      }
    },
    "status": "success"
  }
}

This is the response from the API, where i get multiple dates. so is it possible to save all the dates in a variable in HTTP Block ? @᲼ ᲼ Paul.᲼ ᲼
Attachment
image.png
Try ˋˋ $.data.data.slots.*.time ˋˋ (or rather: ˋˋ data.data.slots.*.time ˋˋ) see if it works otherwise take data.data.slots and ask ChatGPT how to sort it out in the script block with what I told you before so remind it that to import a variable you do …
Etc etc
nope dint work
I am getting this popup all the times, do i need to worry ?
Attachment
image.png
Do you have several tabs of the same typebot opened?
Add a reply
Sign up and join the conversation on Discord