API usage and performance impact

This guide outlines when and how the Salesforce APIs are used to help estimate performance impact.

API usage scenarios

1. Model retraining

Purpose

Periodically retraining customer models using historical case data.

API Used

Standard REST API (SOQL query)

  • Historical cases are read one date window at a time (roughly a month per window)
  • Each window is a single query whose results are paged through in batches
  • Typically processes 6-12 months of data

Frequency

  • Higher during onboarding (multiple times weekly)
  • Lower during full deployment (every few weeks)
  • Can be adjusted based on customer needs

2. Case processing

Purpose

Real-time processing of individual cases.

API used

Standard REST API

  • 1 GET request to fetch a case
  • 1 PATCH request to update multiple fields (e.g., topic, language, sentiment)

Frequency:

  • Example case lifecycle (illustrative):
    • New case event → GET request + PATCH request
    • Case closed event → GET request
  • The actual number of API calls will vary based on your specific implementation and workflow
  • Additional GET requests may occur if you configure update events between case creation and closure

3. Polling

Purpose

Picking up new email messages on cases.

API used

SOQL query

  • One query for new email messages, on a fixed interval
  • Runs only when email messages are synced

4. Event monitoring

Purpose

Real-time event notification.

API used

Salesforce PubSub API

  • Consumes platform events or Change Data Capture (CDC) events
  • Implemented with guardrails to minimize consumption

Performance considerations

  • Historical reads are split into windows and paged, so they have minimal impact on Salesforce performance
  • Case processing calls are made only on specific events (new, update, closed)
  • PubSub API is designed for efficient real-time communication

This information should help estimate the performance impact of implementing Tekst's intelligent capabilities within Salesforce.

0 comments

Please sign in to leave a comment.