

# Plan for scale

Check these three limits before you move more queues or agents onto the guide.

1. **Your system's API allocation.** Every tool call is one API request to your system and counts toward the same allocation as your other integrations. For what happens when your org reaches its allocation, see [API Request Limits and Allocations](https://developer.salesforce.com/docs/platform/salesforce-app-limits-cheatsheet/guide/salesforce-app-limits-platform-api.html) in the Salesforce documentation.

1. **The gateway's tool-call quota.** The gateway's tool calls per second are subject to Amazon Bedrock AgentCore quotas. Size them for your busiest second, not the daily average. See [Quotas for Amazon Bedrock AgentCore](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/bedrock-agentcore-limits.html).

1. **Concurrent active chats in Connect Customer.** Each guide a contact runs, including a wrap-up guide such as the stack's wrap-up flow or the Connect Customer default after contact work guide, counts against the instance's concurrent active chats quota. See [Connect Customer service quotas](amazon-connect-service-limits.md).

## Estimate your costs and API calls
<a name="real-time-data-integration-limits-estimate"></a>

You pay for the services real-time data integration uses:
+ Guides messages in Amazon Connect. See [Amazon Connect pricing](https://aws.amazon.com/connect/pricing/).
+ Gateway tool calls. See [Amazon Bedrock AgentCore pricing](https://aws.amazon.com/bedrock/agentcore/pricing/).
+ AI agent messages for agent assist and AI self-service. See [Amazon Connect pricing](https://aws.amazon.com/connect/pricing/).
+ The AWS resources the stack creates: AWS Lambda functions, an AWS Secrets Manager secret, Amazon CloudWatch alarms and a dashboard, an Amazon SNS topic, Amazon EventBridge rules, and an Amazon Lex bot for the AI self-service sample. See [Monitor the integration](real-time-data-integration-maintain.md#real-time-data-integration-monitor).

Guides usage, gateway calls and AI messages grow with each contact the guide opens for, including transfers, and with each view and each agent action. Measure a few typical contacts in your test environment, and price them with [Amazon Connect pricing](https://aws.amazon.com/connect/pricing/) and [Amazon Bedrock AgentCore pricing](https://aws.amazon.com/bedrock/agentcore/pricing/). Compare the Salesforce API requests with your org's allocation; see [API Request Limits and Allocations](https://developer.salesforce.com/docs/platform/salesforce-app-limits-cheatsheet/guide/salesforce-app-limits-platform-api.html).

## Watch API usage
<a name="real-time-data-integration-limits-watch"></a>

Set an alert in Salesforce before usage gets close to the allocation, and review which integrations use it. For Salesforce's tools, see [API Request Limits and Allocations](https://developer.salesforce.com/docs/platform/salesforce-app-limits-cheatsheet/guide/salesforce-app-limits-platform-api.html), and for the API Total Usage event log, [API Total Usage Event Type](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_eventlogfile_apitotalusage.htm), in the Salesforce documentation.

The stack's health dashboard shows **Salesforce API allowance left (%)** and **Salesforce: daily API allowance used (%)**, and the stack's alarm on the API allowance notifies the stack's change alerts topic when the org has used more than 90% of its daily API allowance; see [Monitor the integration](real-time-data-integration-maintain.md#real-time-data-integration-monitor).