LuizAlves
LuizAlves
TTypebot
Created by LuizAlves on 6/23/2024 in #help-and-questions
Preffiled var stop to work.
No description
3 replies
TTypebot
Created by LuizAlves on 1/25/2024 in #help-and-questions
Unable do drag first subblock into main block(Steps to reproduce the problem)
No description
10 replies
TTypebot
Created by LuizAlves on 1/25/2024 in #help-and-questions
Duplicate blocks showing problem
No description
4 replies
TTypebot
Created by LuizAlves on 1/24/2024 in #help-and-questions
How to pass var body params to http webhook
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: [email protected] 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?
2 replies
TTypebot
Created by LuizAlves on 1/23/2024 in #help-and-questions
Left click and drag stopped to work with latest version
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?
41 replies
TTypebot
Created by LuizAlves on 1/3/2024 in #help-and-questions
get variables list
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.
2 replies
TTypebot
Created by LuizAlves on 12/31/2023 in #help-and-questions
where is the flow executing?
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
3 replies
TTypebot
Created by LuizAlves on 12/28/2023 in #help-and-questions
Links returning extra children text
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/" } ] } ] },
11 replies
TTypebot
Created by LuizAlves on 12/28/2023 in #help-and-questions
Variable with line-breaks
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'
10 replies
TTypebot
Created by LuizAlves on 12/27/2023 in #help-and-questions
What message is this?
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?
3 replies
TTypebot
Created by LuizAlves on 12/27/2023 in #help-and-questions
Test array in condition
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?
3 replies
TTypebot
Created by LuizAlves on 12/23/2023 in #help-and-questions
Http post header doesn´t parse the name when it´s a variable
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 replies
TTypebot
Created by LuizAlves on 12/17/2023 in #help-and-questions
Goto a specific flow step
Hi, using the typebot api is possible I force the flow goes to a specific flow step(or maybe a bubble)?
2 replies
TTypebot
Created by LuizAlves on 12/16/2023 in #help-and-questions
Expiry timeout
Hi, when I create a session via API, is there some parameters to set the max duration of the session without user iteration?
9 replies
TTypebot
Created by LuizAlves on 12/13/2023 in #help-and-questions
Parse response api to whatsapp
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.
21 replies
TTypebot
Created by LuizAlves on 12/11/2023 in #help-and-questions
Global scope function
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?
4 replies
TTypebot
Created by LuizAlves on 12/10/2023 in #help-and-questions
Map item with same index sample
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
6 replies
TTypebot
Created by LuizAlves on 12/6/2023 in #help-and-questions
PDF Url with space
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
7 replies
TTypebot
Created by LuizAlves on 12/6/2023 in #help-and-questions
Ho to get a value from webhook based on other value.
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" }, ] }, ] }
4 replies
TTypebot
Created by LuizAlves on 12/1/2023 in #help-and-questions
Sending a http post just after the flow reach the last step, results 404 error
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 replies