Loading
Feature Disruption - Service Cloud VoiceRead More
Feature degradation | Gmail Email delivery failureRead More

Einstein Chat Bots - Apex Actions Timeout After 10 Seconds

Publish Date: Jul 1, 2025
Description

Apex actions can be utilized with Einstein Chat Bots to leverage custom logic for your customer chat interactions. These actions operate as HTTP callouts (as are Flow actions) and have the default timeout for each action of 10,000 ms (ten seconds). Any action that consumes longer than this will timeout and the Chat Bot will redirect the customer/user to a live agent similar to when an Apex exception occurs. 

Under the Performance section in the Einstein Bot Builder, your Event Log will show the failure for the action as follows:

 java.net.SocketTimeoutException: Read timed out

Resolution

This timeout cannot be set or increased beyond 10 seconds. Best practices should be followed and avoid any long-running requests for apex actions from the Chat Bots. Instead for anything long running we recommend utilizing Asynchronous functionality such as future, batch, scheduled apex etc. This article can show you how to Code more efficiently to avoid 'Apex CPU time limit exceeded.'

All other Apex governor limits apply to these requests, which can be found in the Apex Developers Guide Execution Governor Limits section.

If you are exceeding the 10 second limit please see Code more efficiently to avoid 'Apex CPU time limit exceeded'.

Knowledge Article Number

000383014

 
Loading
Salesforce Help | Article