> For the complete documentation index, see [llms.txt](https://software-help-docs.gitbook.io/knowledge-base/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://software-help-docs.gitbook.io/knowledge-base/software-guide/workflows/premium-triggers-and-actions/slack-premium-action/send-direct-message-to-a-user.md).

# Send Direct Message to a User

If the event is **Send Direct Message to User** , you will have 4 options to pick from.

1. Assigned User - Assigned User of the Contact
2. Custom Email - Add a specific email to search your Slack Workspace for the User and then send out the message
3. Internal User - Users from of your account
4. Slack User - Directly search your Slack Workspace Users by name.

### Select a User Source

To start out, select one of the four User Sources provided.

![](https://t8631005.p.clickup-attachments.com/t8631005/603752a2-8fbb-4d00-9f18-9a9a79f57ca1/2.1.png)

***

## Different Types of User Sources & their use cases

###

### Assigned User (of contact)

This is used to send out notification for the assigned user of the contact. In this case, the email of the user Assigned to the contact is used to find the Slack user.

![](https://t8631005.p.clickup-attachments.com/t8631005/27f4ccff-0735-42a1-9788-584cf7ac492b/2.1.1.png)

### Custom Email

This is used for all the cases where you need to have a dynamic user to send notification to. The custom email that is filled in, is used to find the matching of a Slack user.

This is for all those cases where you do not have the user predefined. Either type in the email, or select from list of custom variables using the custom variable picker.

![](https://t8631005.p.clickup-attachments.com/t8631005/57b4f8c6-e1a9-4d75-9d87-ed6d9c76ef7c/Screen%20Shot%202023-03-02%20at%2021.35.26%20PM.png)

## Internal User

Use this option if you want to send in the message to one of the account users. Typically used to send notification to particular users who would be responsible for certain section of your business. Say, sending out information on successfull opportunity won to your finance head. The email of the Internal User selected is used to find the Slack user here.

![](https://t8631005.p.clickup-attachments.com/t8631005/960fdcc4-e4b3-4e44-9873-20d9b166c8f9/2.1.3.png)

###

## Slack User

This is as simple as it sounds. Send direct Message to any slack user of your workspace.

Please note that Slack allows only a limited number of users to be fetched at once. So if you don’t see your user by typing out the name, please hit the load more button. This will keep searching until you have the required user found. If the user is in the bottom of the list you might have to hit the load more button a couple of times.

This is only for the workspaces having more than 2000 users.

![](https://t8631005.p.clickup-attachments.com/t8631005/cf4ccfac-b56d-447f-b9d7-8bdb8cd88c16/2.1.4.png)

![](https://t8631005.p.clickup-attachments.com/t8631005/0c078ea0-cf8a-4e5f-9f43-c80a011d14e9/Screen%20Shot%202023-03-02%20at%2021.54.41%20PM.png)

### Message Content

Insert Message to send Direct Message to a User. For more formatting options [check here](https://api.slack.com/reference/surfaces/formatting)

![](https://t8631005.p.clickup-attachments.com/t8631005/d3ccd1f1-142f-4386-8fca-5dc9a32df1a9/Screen%20Shot%202023-03-02%20at%2014.06.15.png)

You can use the extensive custom variable picker to send out information about a contact, or any of the CRM related information.

![](https://t8631005.p.clickup-attachments.com/t8631005/5c9a4c1a-7efd-430f-84be-f77002d34084/Screen%20Shot%202023-03-02%20at%2014.07.07.png)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://software-help-docs.gitbook.io/knowledge-base/software-guide/workflows/premium-triggers-and-actions/slack-premium-action/send-direct-message-to-a-user.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
