Build Slack-To-Anything: Bi-Directional Connection Across Your Entire Stack
In short: Build a two-way Slack chatbot with Noca AI that reads and writes Salesforce, NetSuite and monday.com data from Slack, with no code needed.
Last updated:
Key takeaways
- Noca's chatbot builder can create a Slack bot that reads and writes data in Salesforce, NetSuite, monday.com and other connected systems.
- Bots get data sources for each system and object, plus automations started by an autonomous node to create records.
- A Slack flow checks for the bot's trigger word before calling the bot, preventing the bot's replies from causing infinite loops.
Noca Chatbot Builder
Build a Slack chatbot that connects to your entire tech stack — read and write data without leaving Slack
In this guide, we’ll show you how to build a chatbot inside Slack using Noca AI’s chatbot application builder. The bot will be able to look up data from Salesforce, NetSuite, and Monday.com, and even create new records — all from a Slack message.
Keep in mind you can connect this chatbot to any systems available in Noca, not just the ones shown in this example.
Watch & Learn
Follow these steps to add and configure it:
Steps:
Create a new bot
- In Noca, navigate to Bots and click New
- Open the Settings tab on your new bot
- Add instructions that tell the bot what it knows and how to behave (for example: you are the sales team bot, you know how to answer questions related to opportunities in Salesforce, accounts in Salesforce, sales orders in NetSuite, and items in Monday)
- Include a rule that prevents the bot from returning its own trigger word in responses — this is important to avoid infinite loops later
Add data sources to your bot
- Under Data Sources in the bot settings, click the plus button to create a new source
- Choose the system you want to connect (for example, Salesforce)
- Select the object (for example, Opportunities)
- Set any conditions to filter the data you want the bot to access
- Give the data source a clear name (for example, Opportunity Node)
- Click Go Live on the data source to make it active
- Repeat for each system and object you want the bot to read from (Salesforce Accounts, NetSuite Sales Orders, Monday Items, etc.)
Add an automation to create records
- Under Automations, create a new automation
- Describe what the automation should do (for example: when the autonomous trigger is activated, it initiates the create account process in Salesforce)
- Open the automation flow — you will see an autonomous node that Noca creates automatically
- After the autonomous node, add your destination node (for example, Salesforce Create Account) and map the fields you want to populate
Create a flow to connect Slack to your bot
- Create a new flow in Noca
- Start with a Slack node and select the channel that will be monitored for messages
Add a condition to prevent infinite loops
- Add a Logic node and choose an If condition
- Set the rule: if the message from the Slack channel contains your bot’s trigger word (for example, @Noca or +Noca), pass the message to the chatbot
- If the message does not contain the trigger word, end the flow — this prevents the bot’s own responses from triggering another loop
Connect the condition to your chatbot
- From the true path of the condition, add your chatbot node
- Select the bot you created earlier
- Map the Slack message into the bot’s input
Send the bot response back to Slack
- Add another Slack node after the chatbot
- Set it to send a message to the same channel
- Map the bot’s response as the message content
- If the bot returns files, you can also attach them here
Activate the flow and test
- Click Go Live on the flow to activate it
- Go to Slack and send a message mentioning your bot (for example: @Noca what is my most recent opportunity created in Salesforce?)
- Watch the flow process in Noca’s logs in real time
- Confirm the response appears in the Slack channel with the correct data
Test across multiple systems
- Try asking the bot questions that pull from different data sources (for example: what is the most recent sales order in NetSuite?)
- Confirm the bot returns the correct data from each system
Test the automation to create records
- Ask the bot to create a record (for example: create an account in Salesforce with the name SlackBotNoca)
- Go to the destination system (Salesforce) and confirm the new record was created with the correct data
Frequently asked questions
How do I build a Slack chatbot connected to Salesforce with Noca?
To build a Slack chatbot with Noca, create a bot under Bots, add instructions and data sources such as Salesforce opportunities, and set each source live. Then create a flow that starts with a Slack node watching a channel, checks for a trigger word with an If condition, passes the message to the chatbot node and posts the bot's response back to Slack.
How do I stop a Noca Slack bot from replying to itself in a loop?
To prevent infinite loops with a Noca Slack bot, add a rule in the bot instructions so it never returns its own trigger word, and add a Logic If condition in the flow. Only pass messages containing the trigger word, such as @Noca or +Noca, to the chatbot; otherwise end the flow so the bot's own replies do not retrigger it.
Can a Noca chatbot create records in Salesforce from Slack?
Yes. In Noca, add an automation to the bot under Automations and describe what it should do, such as creating an account in Salesforce. Noca adds an autonomous node, after which you add the destination node, like Salesforce Create Account, and map the fields. Users can then ask the bot in Slack to create the record.
Which systems can a Noca Slack bot read data from?
A Noca Slack bot can read from any system available in Noca, not only the examples of Salesforce, NetSuite and Monday.com. For each system you add a data source in the bot settings, choose the object, such as Salesforce Accounts or NetSuite Sales Orders, set filtering conditions, name it clearly and click Go Live.