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
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'.
000383014

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.