on 2021 Nov 18 6:03 AM
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?
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
| User | Count |
|---|---|
| 18 | |
| 7 | |
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.