WhatsApp Infobip

 

 

 

The incorporation of Infobip to our service provides a better experience for our clients.

There are many possibilities that highlight how useful this service is.


WhatsApp Infobip V1

Settings

To configure Infobip in uContact you just have to follow a few simple steps. First, we must verify that you have everything required to create a provider and campaign.

Required:

  • Account configured in Infobip and access to it.

  • Available contact number.

  • Login to uContact with a user with permission to create SMS campaigns and dialers.

  • Have a Public IP to redirect uContact traffic.

  • Enable NGINX.


1. Set up account

  • A ScenarioKey must be created in the Infobip account.

  • uContact Webhooks are also configured so that Infobip sends messages to the portal.

To see how to create a ScenarioKey, go to this link.

Example:

curl --location --request POST 'https://gyyy2e.api.infobip.com/omni/1/scenarios' \ --header 'Authorization: Basic (ususario:pwd en encode 64 sin parentesis)' \ --header 'Content-Type: application/json' \ --data-raw '{     "name": "WHATSAPP scenario",     "flow": [         {             "from": "(numero sin parentesis)",             "channel": "WHATSAPP"         }     ],     "default": true }'

 


2. Get access parameters

In Infobip you can find the API Keys that you will need to create the provider in uContact.


3. Create uContact provider

Log into uContact with a user that has permission to create SMS providers.

Once logged in, we go to Providers → SMS.

We select InfobipWhatsapp from the providers' list, and we fill in the fields:

  • Name
    To identify the provider.

  • Username
    The created scenarioKey will be entered.

  • Password
    Infobip API Key.

  • SMS from
    WhatsApp’s number without periods, spaces, or special characters.

NGINX

To receive the messages un uContact is necessary to add the following code snippet to your NGINX configuration.

location /Integra/resources/InboundSMS/InfobipWhatsapp{ proxy_pass http://localhost:8085; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; }

WhatsApp Infobip V2

Settings

To configure Infobip in uContact you just have to follow a few simple steps. First, we must verify that you

have everything required to create a provider and campaign.

Required:

  • Account configured in Infobip and access to it.

  • Available contact number.

  • Login to uContact with a user with permission to create SMS campaigns and dialers.

  • Have a Public IP to redirect uContact traffic.

  • Enable NGINX.


1. Set up account

  • uContact Webhooks are also configured so that Infobip sends messages to the portal.


2. Get access parameters

In Infobip you can find the API Keys that you will need to create the provider in uContact.


3. Create uContact provider

Log into uContact with a user that has permission to create SMS providers.

Once logged in, we go to Providers → SMS.

We select InfobipWhatsappV2 from the providers' list, and we fill in the fields:

  • Name
    To identify the provider.

  • Username
    The created user will be entered.

  • Password
    Infobip API Key.

  • SMS from
    WhatsApp’s number without periods, spaces, or special characters.

  • Messages per second: Limit of messages that will be sent by this provider per second.


Interactive Button List

Type Buttons:

 

 

 

Example:

Buttons:

body: ¿Cuál fue tu experiencia con uContact?

header;VIDEO;https://integraccs.ucontactcloud.com/attachments/20211011/420029a1-55b4-403b-afe8-62bcd12798d6.uContact.mp4

1- Mala

2-Buena

3- Muy buena

footer: ¡Muchas gracias!

Buttons:

body: ¿Cuál fue tu experiencia con uContact?

header;VIDEO;https://integraccs.ucontactcloud.com/attachments/20211011/420029a1-55b4-403b-afe8-62bcd12798d6.uContact.mp4

1- Mala

2-Buena

3- Muy buena

footer: ¡Muchas gracias!


Interactive List

Example:

List:

title: Gamification

body: Utiliza las técnicas que hace a los juegos atractivos y aplícalas a los procesos de negocios.

1-Opción 1

2-Opción 2

3-Opción 3

4-Opción 4

footer: footer

List:

title: Gamification

body: Utiliza las técnicas que hace a los juegos atractivos y aplícalas a los procesos de negocios.

1-Opción 1

2-Opción 2

3-Opción 3

4-Opción 4

footer: footer


Template

Body:

hsm;templateName;language;type;variable;variable;variable

hsm;templateName;language;type;variable;variable;variable

Text:

hsm;templateName;language;type;placeholder;variable;variable

hsm;templateName;language;type;placeholder;variable;variable

Video/Image:

hsm;templateName;language;type;mediaUrl;variable;variable;variable

hsm;templateName;language;type;mediaUrl;variable;variable;variable

Document:

hsm;templateName;language;type;mediaUrl;filename;variable;variable

hsm;templateName;language;type;mediaUrl;filename;variable;variable

Location:

hsm;templateName;language;type;latitude;longitude;variable;variable

hsm;templateName;language;type;latitude;longitude;variable;variable

URL:

hsm;templateName;language;tipo;mediaUrl;button1;variable;variable

hsm;templateName;language;tipo;mediaUrl;button1;variable;variable

Quick_Reply

hsm;templateName;language;tipo;button:button2:button3;variable;variable

hsm;templateName;language;tipo;button:button2:button3;variable;variable

Quick_Reply_Media

hsm;templateName;language;tipo;mediaType,mediaUrl,filename;button1:button2:button3;variable;variable
hsm;c_demos_au;es;QUICK_REPLY_MEDIA;DOCUMENT,https://instance.ucontactcloud.com/attachments/pdf/20240103/file.pdf,file.pdf;More information!;VAR1;VAR2

Ejemplo:

hsm;access_code;en;BODY;Matias;registration;2412

hsm;access_code;en;BODY;Matias;registration;2412


Contact

 

contact;firstName;formattedName;phone;type;email;type;direction;type

Ejemplo:

contact;John;John Smith;59898115555;CELL;123abc@gmail.com;HOME;Hum 1940;HOME

contact;John;John Smith;59898115555;CELL;123abc@gmail.com;HOME;Hum 1940;HOME

 

 

 

Location

 

location;latitutede,longitude;name;address

Ejemplo:

location;-34.92403016332158, -56.158280428772684;Shopping Punta Carretas;Montevideo, Uruguay

location;-34.92403016332158, -56.158280428772684;Shopping Punta Carretas;Montevideo, Uruguay

 

NGINX

To receive the messages un uContact is necessary to add the following code snippet to your NGINX configuration.

location /Integra/resources/InboundSMS/InfobipWhatsappV2{ proxy_pass http://localhost:8085; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; }

If you want to configure an Infobip SMS provider, go to the following link: https://integra-scm.atlassian.net/wiki/spaces/UCEN/pages/2659090433