Building a chatbot flow using json structure

Hi! I would like to create a chatbot flow using a json structure such as:

{
"title": "Food habits questionnaire",
"questions": [
{
"id": 1,
"type": "open",
"text": "What are your favorite foods?"
},
{
"id": 2,
"type": "closed",
"text": "How often do you consume fruits and vegetables?",
"options": [
"I eat fruits and vegetables every day",
"I eat fruits and vegetables sometimes",
"I almost never eat fruits and vegetables"
]
},
{
"id": 3,
"type": "closed",
"text": "What type of meat do you prefer?",
"options": [
"I prefer chicken",
"I prefer beef",
"I prefer fish",
"I don't eat meat"
]
},
{
"id": 4,
"type": "open",
"text": "Is there any food that you don't like?"
}
]
}

And then, I would love to get the answers following a similar structure ¿How can I do it with Botpress?

1 Like

Hi @miguel.pardo

You will be able to achieve this once we launch our API layer. Stay tuned, as it should come out in a few weeks! :rocket: