Share feedback, ideas and get community help

Home
Members
LuizAlves
L
LuizAlves
Offline, last seen 2 months ago
Joined September 13, 2024
Hi, when I put a text into a variable with line-breaks, it´s not working when showing into bubble block. I have tried with '\n' as well but no look. Is there some workaround?
For sample: myvar='text1
text2
...
text3'
9 comments
L
B
m
I have a medium size flow. When I duplicate a set of block with duplicate popup menu, it doesn't appear. I have to reload the browse window to make it appears. In this screen, I duplicate 'remove particpante 2'. After that, I had to reload the site window to make it showing.
3 comments
B
I am used to click and drag the whole flow to pan and see blocks out of th current visible area .
I just received a warning saying a new version was available.
I updated and I can do it anymore.
Is it ok?
40 comments
2
t
L
C
B
A
Hi, using the API, how can I get a list with all variables containing your keys and values ?
I have seen something in /v1/typebots/{typebotId}/results/{resultId} but I am confused about what is 'resultId' and how to get it and set it into api call.
1 comment
B
Is there a way of know where the flow is executed? I’d like to know it and execute differents blocks depending on the case because some blocks are ok to web but no to http api requests. In my case, this one will be handled in my backend to send to WhatsApp
2 comments
B
Hi, when using links inthe flow, the response from http api is returning an extra children.text although no display text to link has been used in the link :
{ "url": "https://www.cobangu.com.br/", "type": "a", "children": [ { "type": "p", "children": [ { "text": "https://www.cobangu.com.br/" } ] } ] },
9 comments
B
L
When I click restart on my flow in the cloud site I am getting 'Custom head code is not enabled in Preview mode'.
What does it mean?
2 comments
L
B
Hi, is possible test if a variable array is empty into a condition block?
Or do I have to create other variable to test the array before?
2 comments
L
B
Hi, using the typebot api is possible I force the flow goes to a specific flow step(or maybe a bubble)?
1 comment
B
Hi, when I create a session via API, is there some parameters to set the max duration of the session without user iteration?
8 comments
M
B
L
I have a function that convert numbers to emoji. For now, I have to repeat this function code in all blocks I have numbers to convert. I use this function to convert numbered lists on many blocks.
Is there an option to create this function as global to avoid repeat it in each block?
3 comments
L
B
Hi, is there some practical sample or video tutorial showing how to use this funcionality? I found the docs a bit confuse. A json exported flow will be appreciated. Thanks
5 comments
B
L
I have a webhook that send me a pdf url with space.
For sample: "DOCUMENTLINK": "Http://saddss/temp/Declaracao de Filiacao - XXXX YYYY 06_12_23.PDF".
I am putting an embed with the url as:
{{=encodeURI({{documento}})=}}
But it doesn´t work.
I also tried create a new var as below without success:
const documentoEncode = encodeURI({{documento}}) return documentoEncode
6 comments
B
L
Hi, I have a webhook returning something as:
I´d like to get the DOCUMENT_ID and DOCUMENTNAME after I collect the COMPANY_ID

I am using the next code to get the and save in a variable, but I get no look:

data.Database.filter((el) => el.COMPANY_ID == {{ r_menu_sel_clube }}).flatMap((item) => item.COMPANYDOCS.flatMap((doc) => doc.DOCUMENT_ID + "-" + doc.DOCUMENTNAME))

{ "Database": [ { "ASSOCIADO_ID": 2494, "COMPANY_ID": 5, "COMPANYDOCS": [ { "LINE": 1, "DOCUMENT_ID": 43, "DOCUMENTNAME": "Declaração LALAL" }, { "LINE": 2, "DOCUMENT_ID": 11, "DOCUMENTNAME": "Declaração PAPAP" }, ] }, { "ASSOCIADO_ID": 14297, "COMPANY_ID": 6, "COMPANYDOCS": [ { "LINE": 1, "DOCUMENT_ID": 43, "DOCUMENTNAME": "Declaração AA" }, { "LINE": 2, "DOCUMENT_ID": 11, "DOCUMENTNAME": "Declaração CC" }, ] }, ] }
3 comments
B
L
Hi, is there some pre-defined methods to validate emails received from user?
Or I need to create a js toi do it?
6 comments
C
n
L
Hi, why prefilled variables doesn´t work anymore?
I have created my vars in the typebot flow.
First test:
In my node backend:
const ocontact: any = {
ticketId: '11',
name: 'test',
pushName: 'test',
number: '111',
};
const reqData = {
typebot: typebotSession.name,
prefilledVariables: ocontact,
};
const { data } = await axios.post(typebotSession.url, reqData);

And, no var is setted in the typebot flow.


Second test:
curl --request POST --url https://typebot.io/api/v1/typebots/teste-ticket-x2ubdn5/startChat --header 'Content-Type: application/json' --data '{
"prefilledVariables": {
"name": "Baptiste"
}
}'
{"sessionId":"clxrm1h1w013fg70wamgsa3eo","typebot":{"id":"clxrlelma003jhgag1x2ubdn5","theme":{},"settings":{"general":{"isBrandingEnabled":true,"isInputPrefillEnabled":true}}},"messages":[{"id":"b96c4dz8ldbhhez8o0d1ah5v","type":"text","content":{"type":"richText","richText":[{"type":"p","children":[{"text":"Seu numero é:"},{"type":"inline-variable","children":[]},{"text":" "}]},{"type":"p","children":[{"text":"Seu nome é: "},{"type":"inline-variable","children":[]}]},{"type":"p","children":[{"text":"Teste nome é: "},{"type":"inline-variable","children":[]}]},{"type":"p","children":[{"text":"Seu ticket é: "},{"type":"inline-variable","children":[]}]}]}}]}
2 comments
L
B
If I have a block with set of sub blocks as in the attached screen, I am unable to drag the first sub block out of the set. I can do it only with the ohter blocks
10 comments
B
L
V
Hi, I need to pass var params into http put webhook body.
My content-type is application/json
My custom body is:
{ "id":{{group_id}}, "newName":{{novo_nome_grupo}} }
where 'group_id' is a var: 120363146612174483@g.us
and 'novo_nome_grupo' is a var: test.

I am getting the next error on my back:
24/01/2024 10:52:16 Unexpected token @ in JSON at position 24 - SyntaxError: Unexpected token @ in JSON at position 24 at JSON.parse (<anonymous>) at parse (F:\Programas\vuejs\izing.open.io\backend\node_modules\body-parser\lib\types\json.js:89:19)

What am I doing wrong?
1 comment
V
Hi, when I access the http webhook header to put values, I have name/value pair.
The value works well when I choice a variable, but the name doesn´t.
If I put a variable as TokenName with content setted to 'TokenWhats' (for sample) in the http header name, and execute the flow, I get an error:

{
"request": {
"url": "https://sistema......",
"method": "GET",
"headers": {
"{{TokenName}}": "cHxTnsswsZqGvO1U"
},
"timeout": {
"response": 10000
}
},
"response": {
"statusCode": 500,
"data": {
"message": "Error from Typebot server: RequestError: Header name must be a valid HTTP token ["{{tokenname}}"]"
}
}
}
4 comments
B
L
Does someone has some code to parse the response coming from typebot api to send it to other whatsapp number? After I make http posts frommybackend to typebot ai, I have seen nany text, url.... and childrens nested come from typebot api. It becomes hard capture all possibilities.
20 comments
L
B
Using shared api, when the flow has reached the last step and next, I send a post message, I get a 404 error.
How is the best way I can handle it?
7 comments
L
B
His, is possible to pass an object in prefilledVariables, as the 'contact' below?
If yes, how can I access 'contact.name' into my flow?
const reqData = { typebot: TypebotName, prefilledVariables: { number: '929292920000', contact: {id:1, name:'John', address:'xxx',...others keys} } }; const { data } = await axios.post( TypebotUrl, reqData );
4 comments
R
L
B