Skip to content

deepgram-devs/salesforce-call-summarization

Repository files navigation

Salesforce Call Summarization

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

Install requirements

pip install -r requirements.txt

Run

  1. 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>"
  1. 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"
  1. Run from the command line:
python summarize_and_log_calls.py
  1. 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.

Development and Contributing

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.

Getting Help

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:

Further Reading

Check out the Developer Documentation at https://developers.deepgram.com/

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages