Contact Us

January 8, 2024

June 4, 2026 11:07 pm

Resolving Agentforce search Slack action issues

Share with

Understanding the Issue

The “Search Slack” action in Agentforce relies on the Slack API to retrieve messages and files. If the action is not working as expected, it is essential to check the API scopes and permissions granted to the Agentforce agent. In this case, the community member mentioned that all required scopes were already granted, but the issue persisted.

Root Cause

The root cause of this issue is likely due to changes in the Slack API or the Agentforce integration, which may have introduced new requirements for accessing files. It is possible that the Agentforce agent is not properly handling the file ID and channel ID, or that there are issues with the API scopes.

Troubleshooting Steps

To resolve this issue, we recommend the following steps:

First, verify that the Agentforce agent has the necessary permissions to access Slack files. Check the Slack API scopes and ensure that the agent has the correct scopes to read files.

Slack API Scopes

https://api.slack.com/scopes?filter=files

Resolution

Once the API scopes are verified, try re-authenticating the Agentforce agent with Slack to ensure that the agent has the necessary permissions. If the issue persists, check the Agentforce logs for any error messages related to the “Search Slack” action.

Heads up: Make sure to test the “Search Slack” action with different file types and channels to ensure that the issue is not specific to a particular file or channel.

Checklist

  • Verify Slack API scopes
  • Ensure Agentforce agent has necessary permissions
  • Re-authenticate Agentforce agent with Slack
  • Check Agentforce logs for error messages
  • Test “Search Slack” action with different file types and channels

Frequently Asked Questions

What are the required Slack API scopes for the “Search Slack” action?

The required Slack API scopes are files:read and channels:read.

How do I re-authenticate the Agentforce agent with Slack?

To re-authenticate the Agentforce agent, go to the Agentforce settings and click on the “Re-authenticate” button next to the Slack integration.

What are the common error messages related to the “Search Slack” action?

Common error messages include “Invalid API scope” and “Permission denied”.

Can I use the “Search Slack” action to search for messages?

Yes, the “Search Slack” action can be used to search for messages, but it requires the messages:read scope.

Genetrix Technology · Salesforce Marketing Cloud Partner

Need help shipping this in production?

Genetrix builds and untangles Salesforce Marketing Cloud and Agentforce setups for teams that want it done right the first time. If anything in this post sounds familiar, talk to us before it ships.

Get in Touch with Genetrix →

Blogs for the

Business-Savvy!​

Let’s Connect

A 30 min no cost strategy session
with cloud support expert

Let’s Connect

A 30 min no cost strategy session
with cloud support expert