Share feedback, ideas and get community help

Updated 10 months ago

API is sending the text of my block in chunks

Hey guys, the Typebot API is sending the text of this block in chunks to my n8n. Is this the expected behavior or am I doing something wrong?

This is a piece of the code I'm receiving on n8n showing the message in different objects.

"messages": [
{
"id": "folbnz5wknbqh7emu41rzm7t",
"type": "text",
"content": {
"richText": [
{
"type": "p",
"children": [
{
"text": "OlĂĄ, sou o atendente virtual da ClĂ­nica de EstĂ©tica Teste. Digite o nĂșmero de uma das opçÔes abaixo para eu saber o que vocĂȘ deseja fazer:"
}
]
},
{
"type": "p",
"children": [
{
"text": ""
}
]
},
{
"type": "p",
"children": [
{
"text": "1) Agendar um procedimento"
}
]
},
{
"type": "p",
"children": [
{
"text": "2) Alterar agendamento existente"
}
]
},
{
"type": "p",
"children": [
{
"text": "3) Conhecer os procedimentos"
}
]
},
{
"type": "p",
"children": [
{
"text": "4) Fazer uma pergunta"
}
]
}
]
}
}
],
Attachment
Screenshot_at_Mar_11_21-39-18.png
B
B
7 comments
Yes, this is the only available format for now
In the future, you will be able to ask for markdown instead: https://github.com/baptisteArno/typebot.io/issues/1111
For now you need to parse the richText object manually.
Hello guys, how are you? Is the solution mentioned in the "convertRichTextToMarkdown" issue #1111 already available? Is there any version or string available to use in the API to change this type of return in rich text?

Thanks!
It will be available in 2.26.0. Release scheduled today
Thank you very much master, updated and tested. Working perfectly, congratulations on the great work!!
Add a reply
Sign up and join the conversation on Discord