In short: Course exercise: build a website help bot in Noca that answers questions from your site content and creates leads in Salesforce automatically.
Last updated:
Key takeaways
- A Noca help bot can answer visitor questions from your website by adding the site URL as a web source.
- Bot instructions define its role, such as describing Noca and collecting lead details when a visitor seems interested.
- An automation creates the Salesforce lead, mapping name, email, phone and company and returning a Lead ID or error.
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.
-
Frequently asked questions
How do I build a website chatbot that creates Salesforce leads with Noca?
To build a lead-capturing website bot in Noca, start a blank bot, add your website as a web source and write instructions telling it to collect lead details when visitors show interest. Then add an automation that creates a lead in Salesforce, map the lead fields, go live and enable the automation in the bot configuration.
How do I let a Noca bot take actions in Salesforce?
A Noca bot takes actions through Automations. Go to Automations, click + Create New Source and describe the action, for example receiving name, email and phone number and creating a lead in Salesforce. Noca generates the integration; map the fields, click Go Live, then enable the automation on the bot configuration page.
How do I test a Noca lead capture bot?
To test a Noca lead capture bot, open the chat test window, ask standard questions like What is Noca to check knowledge retrieval, then express interest to trigger lead collection. Submit test details and confirm the lead was created in your Salesforce CRM. The automation returns a Lead ID on success or an error response.