Definition
A Bot Action in Salesforce Einstein Bots is a specific operation that a chatbot performs during a conversation. Bot Actions include things like sending a message to the user, asking a question, setting a variable, calling an Apex class, invoking a Flow, querying Salesforce records, transferring to an agent, or making an API callout. Actions are the building blocks of bot dialog steps.
Real-World Example
Consider a scenario where a support manager at QuickAssist is working with Bot Action to improve response times and customer satisfaction scores. After implementing Bot Action, agents have the tools and context they need to resolve issues on the first contact. Average handle time decreases by 20% and CSAT scores climb to an all-time high of 94%.
Why Bot Action Matters
Bot Actions are the individual operations that make up an Einstein Bot dialog step. Each action represents a single thing the bot does during a conversation: sending a text message, asking the user a question and capturing the response into a variable, calling an Apex class, invoking a Flow, querying Salesforce records, making an HTTP callout to an external API, setting variable values, or transferring the conversation to a human agent through Omni-Channel.
Building a bot is essentially a matter of stringing together the right sequence of actions within dialogs. A simple 'Check Order Status' dialog might have three actions: ask the user for their order number (question action), query the Order object (record query action), and send back the status in a formatted message (message action). More complex dialogs chain dozens of actions together with conditional routing based on variable values, which is how bots handle multi-step tasks end to end.
How Organizations Use Bot Action
- •QuickAssist — Built a 'Reset Password' dialog using Bot Actions: a question action asks for the user's email, a record query action looks up the Contact, an Apex action triggers a password reset, and a message action confirms the reset was sent. The full flow runs without any agent involvement.
- •ShieldGuard Security — Uses Bot Actions to capture key customer details during the greeting, then passes those details to the agent if the conversation escalates. The transfer action includes a context payload so the agent has full context on receive.
- •CloudNine Solutions — Built a bot that uses HTTP callout actions to check stock levels in an external ERP system. The bot can answer inventory questions in real time without requiring a data sync between the ERP and Salesforce.
