Share feedback, ideas and get community help

Home
Members
altomarketing
a
altomarketing
Offline, last seen 2 weeks ago
Joined September 13, 2024
If Phone has the number of visitor, how can save in variable Country the country , based on phone number?

I tried this code but it does not work

// Obtener el número de teléfono de la variable Typebot let phone = "{{Phone}}"; // Función para determinar el país basado en los dos primeros dígitos del número de teléfono function determineCountry(phoneNumber) { let countryCode = phoneNumber.substring(0, 2); let country; switch (countryCode) { case "54": country = "Argentina"; break; case "59": country = "Uruguay"; break; case "52": country = "Mexico"; break; case "1": country = "Usa"; break; default: country = "UNKKNOWN"; break; } return country; } // Determinar el país y guardarlo en la variable countryfinal let countryfinal = determineCountry(phone); // Establecer la variable country en Typebot setVariable('country', countryfinal);



Because The country is {{Country}} , always shows UNKNOWN
25 comments
a
M
B
m
I have a middle size bot, and use to change it.. adding or changing variables.

But i need at the end a command to send all variables that exist to an url. (my n8n like zapier)

Is there any command to send all existing variables in json for example , that the customer filled in the flow ?
3 comments
a
L
I have configured whastapp, but in the moment to show audio or video , it shows only dots..

Its strange as the same bot on web, works fine.

I tried to store the files in several servers, with or without cloudflare, even inside github with GaaC gaac.vercel.app

But always shows "..."
( except sending jpg stored inside cdn of shopify) what im missing ?

Im using selfhosted latest version with docker, during several months , with no S3 configured at all.
15 comments
B
a
I use the official WhatsApp API, where once communication is established, I have 72 hours to continue sending a message to the client's WhatsApp, at no additional charge.

I would like to send the message if the person left the flow, I imagine with the wait command (1 hour), let's say.

this would be possible ? What should the flow be like?
2 comments
B
m
I use the bot to give support, and i would like to do this:

Its working hour ? > goes to Chatwoot
Its night ? > goes to create a ticket

How can i do that ? javascript maybe ?
5 comments
a
V