cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to get Whatsapp number and Teams mail id and store in SAP CAI Bot memory variable.

srini3103
Explorer
0 Kudos
938

Hi Team,

We built SAP CAI bot with Custom UI and oAuth and token based validation(Standard SSO will not support our custom requirements) to our oData services connecting to SAP ECC. Bot is up and running on Fiori launchpad and Bot responses are based on logged in user(through code we are handling user authentication).

Our Bot users want to access this Bot from Whatsapp or Teams instead of Fiori launchpad.

Our basic Idea was to use Twillio for integrating CAI Bot to Whatsapp and use Azure for integrating CAI bot with Teams as per standard CAI Documents.

As per our requirements,

For Whatsapp,

We need to get User mobile number when our Bot is invoked from Whatsapp and store in SAP CAI's Memory variable.

For Teams,

We need to get User mail id when Bot is invoked from Teams and store in SAP CAI's Memory variable.

We need this info to process further and access user based data from ECC via oData.

Is it possible to get Mobile number from Whatsapp (via Twillio) and User mail id from Teams(via Azure) and pass it to CAI Bot and store in Memory variable?

Accepted Solutions (1)

Accepted Solutions (1)

timothy_janssen
Advisor
Advisor
0 Kudos

Hey Srinivasulu,

First, Whatsapp integration is currently not supported by CAI, so would need to be custom built. In the custom integration, you could inject the user phone number (and any arbitrary data) into memory manually. For Teams integration, the user email is available in the prticipant_data object in CAI.

Hope that helps!

Tim

srini3103
Explorer
0 Kudos

Hi Janssen,

Sorry for confusion. I have added more details to my post. Please go through them.

As per CAI docs, we can integrate CAI bot with whatsapp using Twillio and Can integrate CAI Bot with Team using Azure.

We need to get User info from Whatsapp or Teams channel and store in CAI's memory variable to process further.

timothy_janssen
Advisor
Advisor

Hi Srinivasulu,

Please have a look at the link I posted above. While connecting with the Teams channel, the user's email is available in the participant_data object (this can be accessed just like {{memory}} within CAI). It also mentions there's no user data available for Twilio integrations - this would need to be injected using a custom integration (it would need to work similar to the getMemory() available for webclient).

Best,

Tim

Answers (0)