Skip to content
Notifications
Clear all

Walkthrough: Using tl;dv's API to push notes to Salesforce

2 Posts
2 Users
0 Reactions
7 Views
(@cost_analyst_ray)
Reputable Member
Joined: 4 months ago
Posts: 138
Topic starter   [#1038]

Having recently undertaken a project to integrate tl;dv's transcription and AI note-taking capabilities with a Salesforce CRM environment for a sales operations team, I found the process to be a compelling case study in operational efficiency gains versus the associated implementation and operational costs. The primary objective was to automate the creation of detailed, structured call notes in Salesforce Opportunities, thereby reducing manual data entry and ensuring consistency. However, a thorough cost-benefit analysis requires a deep dive into the technical workflow and its resource consumption.

The integration architecture hinges on tl;dv's webhook notifications and the REST API. The process flow is as follows:

1. A sales call recorded in tl;dv is processed, generating a transcript and AI-summarized notes.
2. tl;dv sends a `recording.ready` webhook event to a designated endpoint (we used an AWS Lambda function).
3. The endpoint service calls the tl;dv API to fetch the full transcript and notes, using the `recording_id` from the webhook payload.
4. The service then formats this data and uses the Salesforce Composite API to create or update a `Call Note` custom object record, linking it to the relevant Opportunity.

A critical piece of the cost analysis revolves around API consumption. tl;dv's pricing is structured around "AI Minutes," and it is vital to understand which actions consume them. Fetching the transcript and notes via the API **does** consume AI minutes, effectively double-counting the processing for a single call if you are using tl;dv's own interface as well. The cost equation must factor in this dual consumption for automated workflows. Here is a simplified example of the key API call our Lambda function makes:

```javascript
// Example using fetch to retrieve recording data from tl;dv API
const response = await fetch(` https://api.tldv.io/v1/recordings/${recordingId}`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${TLDV_API_KEY}`,
'Content-Type': 'application/json'
}
});
const recordingData = await response.json();
// recordingData contains transcript, summary, chapters, etc.
// This API call consumes AI minutes for the recording's duration.
```

From an infrastructure cost perspective, our AWS Lambda function (Node.js runtime) with an average execution time of 3 seconds per webhook invocation and an estimated 2000 sales calls per month incurred negligible compute costs. The more significant variable costs were:
* tl;dv API costs for the AI minutes consumed by the secondary API call.
* Salesforce API data consumption, as each composite call to create the note object and its relationships consumes API request limits.

Potential pitfalls from a cost and efficiency standpoint include:
* **Webhook Duplication:** Implementing idempotency logic is non-optional. Webhook deliveries can be duplicated, leading to double API calls to tl;dv (incurring double AI minute costs for that segment) and duplicate notes in Salesforce without proper checks.
* **Data Payload Size:** Lengthy call transcripts can increase Lambda execution time slightly and Salesforce data storage consumption. Consider storing only the AI summary and key chapters with a link to the full transcript in tl;dv if cost optimization is paramount.
* **Error Handling Costs:** Failed Salesforce API calls necessitate retry logic. Unchecked retry loops can lead to exponential growth in both tl;dv and Salesforce API consumption, directly impacting costs.

In conclusion, while the automation delivers measurable time savings for sales representatives and improves data quality, the financial justification hinges on the volume of calls. The marginal cost of the secondary API call to tl;dv must be weighed against the labor cost savings. For high-velocity sales teams, the ROI is clear, but for smaller teams, a manual "push-to-CRM" button might be more cost-effective. A precise breakdown requires the hard numbers: your expected monthly call volume, your tl;dv per-AI-minute rate, and your fully burdened cost of a sales rep's data-entry minute.

Show me the bill.


CostCutter


   
Quote
(@stack_scout)
Active Member
Joined: 1 month ago
Posts: 11
 

That webhook-driven workflow you outlined is exactly the kind of clean automation I love to see. The Lambda function as the intermediary is smart, it keeps the logic separate from both systems.

One thing I'd be curious about is the formatting step before pushing to the Composite API. Did you find the AI notes from tl;dv were consistently structured enough to map directly to your custom object fields, or did you need a lot of extra parsing logic? I've seen some AI summaries get a bit creative with formatting.


trial before buy


   
ReplyQuote