Here is a step-by-step written guide designed for an online academy page to accompany the video.
How to Allow Your Bot to Execute Actions in Salesforce
In this lesson, you will learn how to give your Noca AI bot the ability to execute real-time actions in an external system—specifically, creating cases directly inside Salesforce using simple prompt-driven logic and automations.
Prerequisites
Before starting, ensure you have added your Salesforce instance (accounts, contacts, and cases) as Data Sources so your bot has the necessary context to look up information.
Step-by-Step Guide
Step 1: Create a New Automation
-
Navigate to the Automations tab in the main menu.
-
Click the
+icon to add a new source and build a new automation.
Step 2: Configure the Autonomous Node
Every bot flow starts with an Autonomous Node. Define the actions you want the bot to take using plain text instructions:
-
Click on the Autonomous node.
-
In the instruction box, enter:
“You will receive a Subject, Description, Priority, and Contact. Create a Salesforce Case for those values.”
-
Click Insert. This automatically generates a Salesforce Push node in your workflow.
Step 3: Map Values to Bot Control
To let the bot dynamically decide what data to insert based on the conversation, update the field mappings:
-
Select the newly generated Salesforce Push node.
-
Under the Mapping section, remove any default example values.
-
Map each required field (Subject, Description, Priority, and Contact) to the Autonomous value.
Note: If you want specific values hardcoded for every entry, you can type them directly into the field instead of using the Autonomous mapping.
Step 4: Add an API Response Node
To confirm the execution status and share results with the bot, add a feedback loop:
-
Add an API Response node to the end of the workflow.
-
Map the Created Case ID from Salesforce to the response body.
-
Add a key mapping for Error to capture any execution issues during runtime.
-
Name your flow Create Salesforce Case.
-
Click Go Live to publish the automation.
Step 5: Connect the Flow to Your Bot
-
Return to your main Bot Configuration page.
-
Refresh the flows list and select Create Salesforce Case.
-
Review the imported flow instructions.
-
(Optional) Add extra behavior instructions in the prompt panel:
-
“Always confirm details before creating case.”
-
“Once done creating, list all cases for the relevant contact.”
-
-
Click Save.
Step 6: Test the Automation
-
Open the preview/chat window to test the bot.
-
Send a natural text prompt, such as:
“Renen wants to increase his account SLA to Platinum level – 4 hour response time.”
-
The bot will identify the matching contact in Salesforce and ask for any missing fields (e.g., Priority).
-
Provide the missing info (e.g., “Medium priority”), review the summary, and confirm.
-
The bot will create the case in Salesforce and output a structured response with the new Case ID alongside existing contact records.