I'm building a chatbot in Typebot using the OpenAI integration. In one of the prompts, I ask the assistant to provide some options based on the defined knowledge base. The user needs to choose one of these options. However, I don't know how many options might be returned. I managed to create dynamic buttons using the options given by OpenAI, but I had to add a text field before the button component. This causes the options to be displayed as text before the buttons. Does anyone have any tips on how to fix this?
This is an example. And this is my prompt: "You are an assistant at a design agency and need to help the client develop packaging directions effectively by collecting all their preferences and product information to assist your agency in creating the packaging design according to the client's expectations.
Keep in mind that the commercial designation of a product is the name by which it is identified and sold in the market. This name does not include any subjective aspects, type of packaging, volume, or weight.
To do this, using the information from {{Project}} and {{project_sku}}, search on Marketplace and e-commerce websites and display 4 options for the commercial designation of the product plus the option 'None of the above options.'
Return only a list of options in array format. Example: ['Option 1', 'Option 2', 'Option 3']."