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"
}
]
}
]
}
}
],

7 Replies
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
GitHub
Option to tell the API to return markdown instead of rich text · Is...
Hello @baptisteArno! I'm facing an issue with prefilled variables sent from n8n via an HTTP request not being displayed correctly in my Typebot chat flow. I've set up an HTTP request node i...
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!
https://github.com/baptisteArno/typebot.io/blob/b6c15686eae0a49ce53ca3479448620d78e1a0aa/packages/lib/serializer/convertRichTextToMarkdown.ts
This code is published?
GitHub
typebot.io/packages/lib/serializer/convertRichTextToMarkdown.ts at ...
💬 Typebot is a powerful chatbot builder that you can self-host. - baptisteArno/typebot.io
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!!