# Slack Reporting

We can report test run results to Slack, meaning any tests run outside of the Moropo UI (CI-CD, Scheduled, etc.).&#x20;

## Behaviour

Once configured, the integration posts a comment to a defined Slack channel upon completion of a test run. The comment will provide information about what settings the test run contained, the results of the test run, and a link to navigate to the Results Explorer on the Moropo platform.\ <br>

<figure><img src="/files/iREmR4pyiF27kE2TSeuO" alt=""><figcaption></figcaption></figure>

## Configuration

1. Navigate to the settings page at <https://app.moropo.com/settings?index=integrations>.&#x20;
2. Connect Moropo with your Slack workspace. Do this by clicking `Connect` on the Slack Integration card as below.

<figure><img src="/files/BiCwXeJpexYLjGw7ucAU" alt=""><figcaption></figcaption></figure>

3. Slack will then open in a new tab and prompt you to sign in to your Slack workspace, follow these steps to sign in to your account.&#x20;

<figure><img src="/files/4dXYE7IhtAXDVFsFHtt6" alt=""><figcaption></figcaption></figure>

4. Once you are signed in Slack it will prompt you to allow permissions for Moropo.

<figure><img src="/files/zVjs5dzHwg1A4U1qp4Hm" alt=""><figcaption></figcaption></figure>

5. Finally, you should be able to choose your Slack Channel from the drop-down menu. Once this is done the integration is complete! You'll get a message in the channel from the MoropoTestBot saying the Integration has been configured. If you need to connect to a private channel see [#posting-to-private-channels](#posting-to-private-channels "mention")

<figure><img src="/files/UVOJCke5k3aGFDdXhGce" alt=""><figcaption></figcaption></figure>

## Posting to Private Channels

By default, you won't be able to select a private channel to post in. In order to make this available in the channel selection you'll need to invite the bot. You can do this by either;

1. Adding the bot to the channel via chat - you can do this by typing `@MoropoTestBot` in the private channel you want to invite them to.&#x20;
2. Adding the bot to the channel via settings - you can do this by navigating to the channel settings. Under the `Integrations` tab you can find the option to `Add apps`, this will open up a list where you can select the MoropoTestBot.


---

# Agent Instructions: 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:

```
GET https://docs.moropo.com/test-results/slack-reporting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
