Skip to main content
Level 3
Mar 11, 2024 8:13 AM UTC
Solved

Whatsapp custom action with Twilio

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.
ReenaJohn
ReenaJohnAccepted solution
Community Advisor
Apr 4, 2024 5:46 AM UTC

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

6 replies

Craig_Thonis
Adobe Employee
Adobe Employee
Mar 11, 2024 2:38 PM UTC

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

Translate
nirshaniAuthor
Level 3
Mar 18, 2024 9:46 AM UTC

hi i think this is the right forum 🙂  

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

Nir

Translate
SatheeskannaK
Adobe Champion, Community Advisor, UG Leader
Adobe Champion, Community Advisor, UG Leader
Mar 11, 2024 10:32 PM UTC

@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.

 

Translate
Thanks, Sathees
ReenaJohn
Community Advisor
ReenaJohnCommunity AdvisorAccepted solution
Community Advisor
Apr 4, 2024 5:46 AM UTC

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

Translate
nirshaniAuthor
Level 3
Apr 4, 2024 5:51 AM UTC

thank you

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

 

thanks

Nir

Translate
ReenaJohn
Community Advisor
Community Advisor
Apr 4, 2024 5:56 AM UTC

@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/

Translate