ibm-cloud-docs / assistant

22 stars 58 forks source link

Watson Assistant Phone Integration Twilio #412

Closed aymalkhalid closed 2 years ago

aymalkhalid commented 2 years ago

Hello, I am trying to access user phone no in Watson assistant through the phone channel I am using Twilio sip trunks. from where the call is originated. It's written in the document that we can access phone integration context variables. But how can I do that especially the user contact number because we want to do verification based on phone numbers. Thanks. image Link to document https://cloud.ibm.com/docs/assistant?topic=assistant-phone-context#phone-context-variables-set-by-phone-channel

aymalkhalid commented 2 years ago

use $integrations.voice_telephony.private.user_phone_number context variable to obtain the phone number that the call was received from. For example, you can use this in the welcome node to read back the phone number to the user: "Hello. You are calling from $integrations.voice_telephony.private.user_phone_number"