> ## Documentation Index
> Fetch the complete documentation index at: https://docs.incident.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Asking for confirmation before a workflow runs

> Have a workflow ask in the incident channel before it runs, and optionally collect a form from whoever approves it.

Some workflows are useful most of the time, but not always: paging another team, posting to a customer channel, or changing an incident's severity. Instead of making them manual, you can have the workflow ask first. When it matches, a prompt is posted in the incident channel, and the workflow only runs once someone approves it.

## Turning on confirmation

In the workflow editor, find **And runs automatically** under the trigger and click **Ask first**. It changes to **Then asks for confirmation in the incident channel**.

<img src="https://mintcdn.com/incidentio-18bb4170/gOqnOEy0HbWSUask/images/workflows/confirmation/workflow-editor.png?fit=max&auto=format&n=gOqnOEy0HbWSUask&q=85&s=93a9c1f6e9aa8d08c32f9b1a35d76bf7" alt="A workflow that asks for confirmation in the incident channel, then fills in a form with the field &#x22;Why is this bad?&#x22; when confirming" width="603" height="1024" data-path="images/workflows/confirmation/workflow-editor.png" />

Confirmation works for workflows whose trigger is about a single incident. It isn't available for manually-triggered workflows, since running one by hand is already a confirmation.

## What happens when the workflow matches

When the trigger fires and the conditions match, a message is posted in the incident channel asking whether to run the workflow, with **Run** and **Dismiss** buttons. Nothing runs until someone answers.

<Tabs>
  <Tab title="Slack" icon="https://mintcdn.com/incidentio-18bb4170/d59bRVtvDXI8bGj8/icons/integrations/slack.svg?fit=max&auto=format&n=d59bRVtvDXI8bGj8&q=85&s=59b5512544e36e8fa93c765235e0c8ea" width="20" height="20" data-path="icons/integrations/slack.svg">
    <img src="https://mintcdn.com/incidentio-18bb4170/gOqnOEy0HbWSUask/images/workflows/confirmation/slack-prompt.png?fit=max&auto=format&n=gOqnOEy0HbWSUask&q=85&s=a25a23bb827c5bd132f37404e1f7a7a7" alt="Slack message from incident.io asking &#x22;Shall I run the Please explain the issue workflow?&#x22; with Run and Dismiss buttons" width="1024" height="152" data-path="images/workflows/confirmation/slack-prompt.png" />
  </Tab>

  <Tab title="Microsoft Teams" icon="https://mintcdn.com/incidentio-18bb4170/DH5ZgM9gtjvWKAzh/icons/integrations/microsoftteams.svg?fit=max&auto=format&n=DH5ZgM9gtjvWKAzh&q=85&s=af33470901b84f0793adc73fe3a042b7" width="20" height="20" data-path="icons/integrations/microsoftteams.svg">
    <img src="https://mintcdn.com/incidentio-18bb4170/gOqnOEy0HbWSUask/images/workflows/confirmation/teams-prompt.png?fit=max&auto=format&n=gOqnOEy0HbWSUask&q=85&s=4cee64c3880e8f180e447a6f4020c706" alt="Microsoft Teams card from incident.io asking &#x22;Shall I run the workflow?&#x22; with a checkbox, a text field, and Run and Dismiss buttons" width="1024" height="569" data-path="images/workflows/confirmation/teams-prompt.png" />
  </Tab>
</Tabs>

* **Run** checks the conditions again, then runs the workflow's steps. The message updates to show it's running.
* **Dismiss** cancels the run, and the message updates to say so.

Only people who can see the incident can answer the prompt, and the first answer wins.

A prompt is cancelled without running if:

* nobody answers it within 24 hours,
* the incident is declined, canceled or merged, or
* the workflow's conditions stop applying before anyone answers.

The message updates to explain why the workflow didn't run. Every outcome appears in the workflow's **Activity**.

## Collecting a form when someone approves

A workflow that asks for confirmation can also have a form, just like a manually-triggered workflow. Steps can use the answers in the same way as other variables.

<Tabs>
  <Tab title="Slack" icon="https://mintcdn.com/incidentio-18bb4170/d59bRVtvDXI8bGj8/icons/integrations/slack.svg?fit=max&auto=format&n=d59bRVtvDXI8bGj8&q=85&s=59b5512544e36e8fa93c765235e0c8ea" width="20" height="20" data-path="icons/integrations/slack.svg">
    Clicking **Run** opens the form, and the workflow runs when it's submitted.

    <img src="https://mintcdn.com/incidentio-18bb4170/gOqnOEy0HbWSUask/images/workflows/confirmation/slack-form.png?fit=max&auto=format&n=gOqnOEy0HbWSUask&q=85&s=3dccaad2abcf4d580df10b01319f3326" alt="Slack Run workflow modal asking &#x22;Why is this bad?&#x22;, with Cancel and Run buttons" width="1024" height="759" data-path="images/workflows/confirmation/slack-form.png" />
  </Tab>

  <Tab title="Microsoft Teams" icon="https://mintcdn.com/incidentio-18bb4170/DH5ZgM9gtjvWKAzh/icons/integrations/microsoftteams.svg?fit=max&auto=format&n=DH5ZgM9gtjvWKAzh&q=85&s=af33470901b84f0793adc73fe3a042b7" width="20" height="20" data-path="icons/integrations/microsoftteams.svg">
    The form is shown on the prompt itself. Fill it in, then click **Run**.

    The prompt can show text and checkbox fields. Other optional fields are left out. If the form has a required field that Teams can't show, the workflow is cancelled instead of asking.
  </Tab>
</Tabs>

Conditions, [How often should this workflow run?](/workflows/advanced#how-often-should-this-workflow-run) and [loops](/workflows/loops) are decided before the form is filled in. So they can't use the form's answers, or expressions built from them. The workflow editor only offers them where they can be used.

To turn confirmation off, remove the form first.
