This tutorial provides code snippets and instructions on how to utilize Python SDK to call Symbl's Telephony API using SIP. To view the source code, browse the open-source repository in GitHub.
The Python SDK provides the following capabilities:
The code snippet below allows you to start a Telephony connection with Symbl via SIP. It can make an outbound call to a phone number using SIP endpoints that can be accessed over the internet using a SIP URI:
uri is the SIP addressing scheme that communicates who to call via the SIP.
To stop an active Telephony connection, use the code given below:
connectionId of the connection you want to terminate.
Optionally, you can also use parameters supported with Telephony API. This returns an updated connection object which will have the
conversationId in the response.
Once the SIP connection is established, you can get live updates on conversation events such as generation of transcript, action items or questions, etc.
connection_object.subscribe is a function of the
connection object that listens to the events of a live call and let's you subscribe to them in real-time. It takes a dictionary parameter, where the key can be an event and it's value can be a callback function that should be executed on the occurrence of that event.
Following are the functions for different events you can subscribe to:
|Generates an event whenever transcription is available.|
|Generates an event whenever an |
|Generates an event whenever a tracker is identified in the transcription.|
|Also generates transcription values, however these will include an |
|Generates an event whenever a topic is identified in any transcription.|
After the call has ended, you can trigger an email containing the URL to view the Transcripts, Topics, Speaker analytics, Follow-ups, Action Items and meeting insights in a single page Web Application in a single page Web Application- Symbl's Prebuilt Summary UI.
To receive the insights via email, use the code given below:
emailId is the email address where Symbl will send the Conversation Insights.
A sample of the Insights email is given below:
The sample code given below shows the usage of subscribe function and email action explained above:
For a complete list of supported classes and objects in the Python SDK, see the Python SDK Reference page.
You can view more capabilities added to Telephony API in the following sections: