Looking for advice on handling rate limits when stress-testing the Bot API via JMeter. We are simulating 500 concurrent users initiating chat sessions through our custom web widget. The goal is to validate the AI/Bot capacity before a major campaign launch.
When the concurrent thread count exceeds 200, we start seeing a spike in HTTP 429 Too Many Requests errors on the /api/v2/bots/interactions endpoint. The error response indicates we are hitting the API rate limit for interaction creation. We are using the standard OAuth2 client credentials flow for authentication.
Here is the JSON payload we are sending for each interaction:
{
"botId": "bot-12345-abc",
"userId": "user-test-99",
"message": {
"text": "Hello, I need help with my order"
}
}
We have checked the Admin console and the bot configuration seems standard. Is there a specific rate limit for bot interactions that we are missing? We tried adding a small delay between requests, but the 429s still occur during peak bursts. How should we structure the JMeter script to handle these retries without flooding the API further?