Summarize sales calls using Deepgram, and log the call summaries on a Salesforce opportunity and account.
See the related blog post for a full walk-through: Log Deepgram Call Summaries in Salesforce
pip install -r requirements.txt
- Fill in your credentials at the top of
summarize_and_log_calls.py
:
DEEPGRAM_API_KEY = "<YOUR_DEEPGRAM_API_KEY>"
EMAIL = "<YOUR_SALESFORCE_EMAIL>"
PASSWORD = "<YOUR_SALESFORCE_PASSWORD>"
SECURITY_TOKEN = "<YOUR_SALESFORCE_SECURITY_TOKEN>"
- Optionally, edit the Salesforce account name and the audio URL in
summarize_and_log_calls.py
:
ACCOUNT_NAME = "Deepgram"
CALL_URL = "https://static.deepgram.com/examples/nasa-spacewalk-interview.wav"
- Run from the command line:
python summarize_and_log_calls.py
- Output from a successful run is as follows:
Deepgram API call completed with request ID: <request id>
Generated call summary: <summary>
Account Deepgram has ID <id>
Opportunity name '<opp name>' has ID <id>
Salesforce result: OrderedDict([('id', '<id>'), ('success', True), ('errors', [])])
Wrote call event with ID: <id>
Finished processing the call.
Interested in contributing? We ❤️ pull requests!
To make sure our community is safe for all, be sure to review and agree to our Code of Conduct. Then see the Contribution guidelines for more information.
We love to hear from you so if you have questions, comments or find a bug in the project, let us know! You can either:
- Open an issue on this repository
- Ask a question, share the cool things you're working on, or see what else we have going on in our Community Forum
- Tweet at us! We're @DeepgramAI on Twitter
Check out the Developer Documentation at https://developers.deepgram.com/