Whatsapp custom action with Twilio | Community
Skip to main content
Level 3
March 11, 2024
Solved

Whatsapp custom action with Twilio

  • March 11, 2024
  • 3 replies
  • 2599 views

hi 

 

i want to send whatsapp messages during the journey using AJO custom action

as per Twilio documemtation , the accept only :

 

Expected Content Type for API Requests
Twilio's APIs expect the content type of API requests to be either application/x-www-form-urlencoded or multipart/form-data. It is important to note that although Twilio returns responses in JSON format, the API requests themselves should be formatted as either www-urlencoded or multiparty form data.

 

how can achive this in custom action ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ReenaJohn

hi @nirshani, We had implemented Twilio SMS at our end and during the process realized that we were unable to accomplish sending sms/whatsapp message directly using custom action as twilio uses basic authentication with content type as url encoded.

The combination of which is currently not available/probably allowed with custom action.

 

We created a AIO action to do the Twilio call and further used the AIO url in a datasource along with the basic authentication to achieve our use case as AIO content type would application/json

3 replies

Craig_Thonis
Adobe Employee
Adobe Employee
March 11, 2024

Hi Nirshani,

 

I'd recommend checking out the link below, and if this doesn't address your request, please post this question to the Journey Optimizer forum, as this is the Adobe Campaign Standard forum which is less likely to provide answers to your questions.

https://experienceleaguecommunities.adobe.com/t5/journey-optimizer-questions/custom-action-to-send-email-at-the-end-of-a-journey-with-a-third/td-p/632351

 

Regards,

Craig

nirshaniAuthor
Level 3
March 18, 2024

hi i think this is the right forum 🙂  

my problem is that i need to call the api but not with JSON

Nir

SatheeskannaK
Community Advisor
Community Advisor
March 11, 2024

@nirshani AJO custom actions have a default header which you won't be able to remove and it supports only JSON format.

Take a look at this documentation.

 

Thanks, Sathees
ReenaJohn
Community Advisor
ReenaJohnCommunity AdvisorAccepted solution
Community Advisor
April 4, 2024

hi @nirshani, We had implemented Twilio SMS at our end and during the process realized that we were unable to accomplish sending sms/whatsapp message directly using custom action as twilio uses basic authentication with content type as url encoded.

The combination of which is currently not available/probably allowed with custom action.

 

We created a AIO action to do the Twilio call and further used the AIO url in a datasource along with the basic authentication to achieve our use case as AIO content type would application/json

nirshaniAuthor
Level 3
April 4, 2024

thank you

can you elaborate on what is AIO action ? is like a middleware ?

 

thanks

Nir

ReenaJohn
Community Advisor
Community Advisor
April 4, 2024

@nirshani AIO is Adobe I/O which allows you to deploy custom code on cloud. This IO url you can call from your DataSource to perform further twilio call. 

Refer this link - https://developer.adobe.com/runtime/docs/guides/overview/