Deploy Agentforce Agent from Salesforce to Slack [Complete Guide]

In our Salesforce organisation, we created an Agentforce agent to help our support team and users. For daily communication, we use Slack and have connected it to our Salesforce organisation.

Now, when communicating on Slack, our users need to obtain information from AI agents that are deployed in the Salesforce org.

To use these AI agents in Slack, we need to deploy them within Slack as well, so that users don’t have to navigate to Salesforce every time they need to ask the AI agents a question.

For example, when we deploy the Agentforce agent from Salesforce to Slack, team members can ask questions like “Show today’s open cases” or “Create a new support case” directly in Slack. The agent quickly responds with real-time Salesforce data without switching between apps.

In this article, we will learn how to deploy an Agentforce Agent from Salesforce to Slack. So that users and support teams can interact with the AI agent directly in Slack.

This allows them to access Salesforce data, create or update records, and get instant responses without switching between Salesforce and Slack.

Deploy Agentforce Agent from Salesforce to Slack

Before deploying the Agenrforce agent from a Salesforce org to Slack, we first need to connect Slack with Salesforce.

In the steps below, I will explain how to deploy the Agentforce Agent from your Salesforce org to Slack, allowing users to interact directly with the AI agent within Slack.

First, let’s ensure that we have connected Slack with our Salesforce org. To do that, navigate to the Slack workspace, click the user dropdown, then select Tools and Settings, and finally, Manage Salesforce Organisations.

Deploy AI Agents in Slack

Then, you will see the connected Salesforce org from which we will deploy the AI agents into the Slack instance.

Connect Salesforce Org in Slack

Now, let’s understand how to deploy an AI agent to Slack. For that, first, we need to decide which agent we want to deploy into Slack.

To do that, navigate to the Salesforce org, go to Setup, and then search for Agentforce Agents in Quick Find. Open the agent you want to deploy to Slack.

Deploy AI Agents in Slack from Salesforce Org

After that, open the selected AI agent in the Open in Builder option.

Give access of Salesforce Agentforce Agents to Slack users

Next, navigate to the Connection option, where we grant access for this agent to be used or deployed in the Slack workspace.

Click the Add button to add the connection between Slack and Salesforce Agentforce Agent.

Add Connections in Agentforce Agents in Salesforce

As you click the Add button, the Connection Type will be set to API, as it will be connected to Slack through the API. Then you need to provide an Integration Name. Here I have provided Slackintegration.

Next, in the Connected App, there is already a connected app that was created right when we installed the Salesforce Platform Connector package. So just search Slack and select it. Then click the Save button.

We are now done from the Salesforce side; we have made this agent available to Slack through this connection. Now let’s go back to Slack.

Add External App to an Agentforce Agents in Salesforce

As you navigate to Slack again, click the user dropdown, then select Tools and Settings, and finally, Organisations settings.

How to Deploy AI Agents in Slack from Salesforce Org

Here you will find the Order agent for which we granted access to be used in Slack from the Salesforce org. Click the Review button to deploy this agent to Slack.

Install AI agent in Slack From Salesforce

As you click the Review button, it says Do you want this agent to be available here. And you can click on Allow.

Grant Access to Deploy Agentforce Agent in Slack

After that, select the user for whom you want to deploy the user, since we added only one user for that. I have selected this, and then click the ” Add To 1 Workspaces button to proceed.

Deploy Agentforce Agent in Slack From Salesforce

Now we are ready to use the Agantforce agent in Slack that we deployed from the Salesforce org. For that, on the left side panel, you will see the Agentforce icon. Click on it. Then, if you have deployed multiple AI agents, select the agent that you want to use.

Here, I have selected Order Aganet, which we have deployed to the Slack instance.

How to Deploy Agentforce Agent in Slack From Salesforce

In the image below, you can see that we can use the Order Agent. Here, I provided a prompt to retrieve the status of the order, which information we store in the Salesforce object.

Additionally, you can view the agent response, which displays the order status in the same manner as it was previously shown in the Salesforce org.

Now you can see that your employees can actually talk to these agents from Slack, and they don’t have to be in Salesforce.

Salesforce Agentforce Deploy Agents to Slack

Apart from that, users don’t actually have to open the agent from the agent for chat. They can actually be in some group.

We can tag the agent’s name using the @ symbol and ask the question of them, so that the agent can respond to the user.

So you don’t actually have to go to the agent and ask them a question. You can be in any channel from there. Additionally, you can trigger this agent and receive the response it generates again.

Deploy Agentforce Agent from Salesforce to Slack

In this way we can deploy the Agentforce AI agents from Salesforce Org to Slack.

Conclusion

I hope you have got an idea about how to deploy an Agentforce Agent from Salesforce to Slack. So that users and support teams can interact with the AI agent directly in Slack.

With this, we can deploy Agentforce Employee Agents, Slack agents, and Service Agents to Slack from the Salesforce org as well.

This allows us to access Salesforce data, create or update records, and get instant responses without switching between Salesforce and Slack.

You may like to read:

Salesforce AgentForce Live Webinar

Agentforce in Salesforce

DOWNLOAD FREE AGENTFORCE EBOOK

Start with AgentForce in Salesforce. Create your first agent and deploy to your Salesforce Org.

Salesforce flows complete guide

FREE SALESFORCE FLOW EBOOK

Learn how to work with flows in Salesforce with 5 different real time examples.