Course Exercise: How to Build an AI Help Bot with Salesforce Integration
Learn how to build a website help bot using Noca AI that answers visitor questions using your website’s content and automatically creates leads in Salesforce when prospects show interest.
Prerequisites
-
A Noca AI account
-
Access to your company website URL
-
A connected Salesforce CRM instance
Step 1: Set Up Your Bot
-
Log in to Noca AI and start with a blank bot.
-
Give your bot a clear name (e.g.,
Help Bot).
Step 2: Add Web Context
To allow your bot to answer questions about your company, give it access to your website source:
-
Navigate to Sources and select Web Source.
-
Enter your primary website URL (e.g.,
[https://noca.ai](https://noca.ai)). -
Save the source so the bot ingests your site’s content.
Step 3: Define Bot Instructions
Set the clear rules and personality for your helper:
-
Open the Instructions panel.
-
Enter your prompt to define its role and objective:
“You are a Noca helper. Provide details about Noca. When the client seems interested, collect lead details and create a lead for me in Salesforce.”
Step 4: Configure the Salesforce Lead Automation
Now, set up the action that allows the bot to push data into Salesforce:
-
Go to Automations and click + Create New Source.
-
Define the automation prompt:
“You will receive details such as name, email, and phone number. Create a lead in Salesforce.”
-
Insert the node. Noca will automatically generate the integration layout.
Step 5: Map Fields and Handle API Responses
-
Map Autonomous Values: Ensure the following fields are mapped to collect user inputs:
-
First Name
-
Last Name
-
Email
-
Phone
-
Company
-
-
Set API Response Handling: Pass back status values so the bot receives confirmation:
-
Map Lead ID for successful submissions.
-
Map Error Response to capture and display any connection issues.
-
-
Rename this action node to
Create Lead in Salesforce. -
Click Go Live to publish the automation.
Step 6: Enable and Test Your Bot
-
Return to your Bot Configuration page and refresh.
-
Enable the Create Lead in Salesforce automation.
-
Open the chat test window and test the workflow:
-
Ask standard questions (e.g., “What is Noca?”) to test knowledge retrieval.
-
Express interest (e.g., “Sounds great!”) to trigger the lead capture form.
-
Submit test details to verify the lead is successfully created in your Salesforce CRM.
-