> For the complete documentation index, see [llms.txt](https://docs.siit.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.siit.io/guides/workflows/how-to-trigger-slack-actions-in-workflows.md).

# Add Slack actions to a workflow

Add Slack actions to a Siit workflow: add a user to a Slack group or public channel, create a public channel, or post a message on a channel, and configure each one

Automate Slack channel and group management from any Siit workflow

### Step 1: Open or create a workflow

Navigate to **Workflows** and either:

* Open an existing workflow (like "Employee Onboarding" or "Access Request")
* Create a new workflow from scratch

### Step 2: Add a Slack action

1. In the workflow builder, click the **+ button** where you want to add the action
2. Open the **Paths** panel on the right
3. Expand the **Slack** section
4. Select the action you need:
   * **Add user to Slack group**
   * **Add user to public channel**
   * **Create public channel**
5. * \**Post a message on a Slack channel*\
     *\**

### Step 3: Configure the action

Each action has specific fields:

**Add user to Slack group:**

* **Group:** Select from slack group dropdown

**Add user to public channel:**

* **Channel:** Select the channels from dropdown

**Create public channel:**

* **Channel name:** Define a naming convention using variables (e.g., `project-{{request.project_name}}`)

**Post a message:**

* **Channel:** Target channel
* **Message:** Compose your message (supports Slack markdown and variables)

### Step 4: Add conditions (optional)

Use conditions to control when actions execute:

* Only add users if their role = "Engineering"
* Only archive channels if project status = "Completed"
* Only post messages if approval = "Approved"
* Activate the workflow when ready

### Example workflows

* **New hire onboarding:** Add to 5+ channels based on department
* **Project kickoff:** Create channel + add team members + post welcome
* **Offboarding:** Remove from all groups and archive owned channels


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.siit.io/guides/workflows/how-to-trigger-slack-actions-in-workflows.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
