# How do I get notified when a Workflow is stuck?

> Set up a separate Workflow that triggers off the same inquiry event, waits for a decision status, and notifies you if the first Workflow gets stuck.

Source: https://help.withpersona.com/articles/1wRuVQRKN67X2AWIdvFKTq/
Section: Workflows > FAQ > Use Cases

This question came from a member of the Persona community, an operations lead who found out a Workflow had stalled only when a customer complained. This is useful for anyone who wants to hear about a stalled Workflow before their users do.

## Set a workflow to notify if another workflow doesn’t finish in 5 mins.

Occasionally workflows get stuck or take longer than expected to complete. And if a workflow is stuck, then having a step inside of that workflow to notify you is also never going to trigger because it’s stuck. So what we’re going to outline here is how to set up a separate workflow that notifies you if the first workflow get stuck.

## Name our Objects

Let’s refer to the triggering inquiry as “Original inquiry” and the workflow that occasionally gets stuck as “Review inquiry workflow”. The review inquiry workflow is triggered to run off of the original inquiry entering the `Completed` status. We don’t need to change anything with those two objects.

The “Notification Workflow” will be our new workflow and it will do the following:

- Also trigger off the original inquiry entering the `Completed` statues
- Wait for any of 3 Events: Inquiry approved, Inquiry declined, Inquiry marked for review.
- Conditional branch off of those same inquiry statues and send a notification if none of them are met (because the Review Inquiry workflow got stuck)

  ![NotificationWorkflowExample001](https://assets.withpersona.com/f_auto,q_auto/help-center/articles/workflows/notificationworkflowexample001.png '787x972')

## Step by Step

Let’s walkthrough the process for building this workflow from creation to published.

### Create Workflow

- From the Workflows page, click the **Create workflow** button at the top right.

  ![Screenshot 2025-09-25 at 12.38.32 PM](https://assets.withpersona.com/f_auto,q_auto/help-center/articles/workflows/screenshot-2025-09-25-at-12-38-32-pm.png '800x187')

- In the New Workflow widget:

  ![Screenshot 2025-09-25 at 12.39.58 PM](https://assets.withpersona.com/f_auto,q_auto/help-center/articles/workflows/screenshot-2025-09-25-at-12-39-58-pm.png '533x597')

- Enter a descriptive name
- Optionally fill out the description field
- Leave the Trigger Type on Event
- Leave the Trigger event on `inquiry.completed`

ℹ️

We want this new workflow to start at the same time as the Review Workflow so we can base the
wait step on the same starting point.

- Click the **Continue** button.

### Set Trigger Criteria

⚠️

Unless you set a Trigger Criteria, every single inquiry that gets set to{' '}

<code>inquiry.completed</code> will trigger this workflow. Let’s use the trigger criteria to narrow
the scope.

- Select the On Inquiry completed step at the top of the flow.

  ![Screenshot 2025-09-25 at 12.40.32 PM](https://assets.withpersona.com/f_auto,q_auto/help-center/articles/workflows/screenshot-2025-09-25-at-12-40-32-pm.png '800x473')

- Click the **Edit** icon to the right of **Trigger Criteria**.

  ![Screenshot 2025-09-25 at 12.41.03 PM](https://assets.withpersona.com/f_auto,q_auto/help-center/articles/workflows/screenshot-2025-09-25-at-12-41-03-pm.png '800x338')

- In the where field, set it to Trigger template id.
- Then from the value drop down on the right, scroll and select the specific inquiry template you want this workflow to trigger from.
- Click the **Close** button.

## Wait Step

![Screenshot 2025-09-25 at 12.42.18 PM](https://assets.withpersona.com/f_auto,q_auto/help-center/articles/workflows/screenshot-2025-09-25-at-12-42-18-pm.png '800x688')

- Click the empty node between On Inquiry Completed and Output Data.
- From the list on the right, click **Wait**.
- Leave the Wait for field on `Object`.
- Set Target Object to Workflow Trigger, which is the original inquiry.

  ![Screenshot 2025-09-25 at 12.42.38 PM](https://assets.withpersona.com/f_auto,q_auto/help-center/articles/workflows/screenshot-2025-09-25-at-12-42-38-pm.png '800x675')

- For events, set all three of the options: Inquiry approved, Inquiry declined, & Inquiry marked for review
- Set the time to `300s` for 5min.

ℹ️

Why 5 mins?? Most workflows with reports and database verifications complete well before five
mins. So if it’s taking it longer than 5min, that’s a good time to investigate.

- Click the **Close** button.

### Conditional Step

- Add a new step after the Wait Step, and select `Conditional` from the list on the right.

  ![Screenshot 2025-09-25 at 12.43.18 PM](https://assets.withpersona.com/f_auto,q_auto/help-center/articles/workflows/screenshot-2025-09-25-at-12-43-18-pm.png '800x594')

- For Route 1, click the **Edit** icon to the right.

  ![Screenshot 2025-09-25 at 12.48.00 PM](https://assets.withpersona.com/f_auto,q_auto/help-center/articles/workflows/screenshot-2025-09-25-at-12-48-00-pm.png '800x408')

- Update the Label to `Post-Inquiry` since we want to indicate a route for runs where the trigger object, the original inquiry, has moved into one of the Post-Inquiry statues.
- In the Condition:
  - Set Where to Trigger status
  - Set the Operator (in the middle) to `is in`
  - Set the value to `approved`, `declined`, & `needs_review`
- Click back to the flow.

  ![Screenshot 2025-09-25 at 12.48.32 PM](https://assets.withpersona.com/f_auto,q_auto/help-center/articles/workflows/screenshot-2025-09-25-at-12-48-32-pm.png '800x632')

ℹ️

The point of the condition is to check that after five minutes if the original inquiry is still
in the Completed status, and needs to send a notification, or it’s in one of the Post-Inquiry
statues. Depending on how you set up your condition, you’ll need to adjust where you place the
notification step. Since we’re checking in Route 1 if it’s in Post-Inquiry (which we don’t need a
notification for) we need to place the notification in the Else route instead.

- Select the blank step in Route one and cancel it via the **Cancel** button at the bottom right.

  ![Screenshot 2025-09-25 at 12.48.49 PM](https://assets.withpersona.com/f_auto,q_auto/help-center/articles/workflows/screenshot-2025-09-25-at-12-48-49-pm.png '533x625')

- Click the new step node under the Else Route.
- Select Action step, and then search for “Send”. This will bring up a number of notification options. Select a configure the one you’d prefer.

  ![Screenshot 2025-09-25 at 12.49.15 PM](https://assets.withpersona.com/f_auto,q_auto/help-center/articles/workflows/screenshot-2025-09-25-at-12-49-15-pm.png '800x554')

- OR select Action, step and then search for “HTTP”. This will bring up the Make HTTPS Request Action step, allowing you to configure a HTTPS request to your system.

  ![Screenshot 2025-09-25 at 12.49.35 PM](https://assets.withpersona.com/f_auto,q_auto/help-center/articles/workflows/screenshot-2025-09-25-at-12-49-35-pm.png '800x762')

- Lastly, review and Publish the workflow.

This answer was reviewed by Justin Sayarath, a product manager at Persona. FAQs, unlike other articles, are written to provide Persona Community members more specific answers to common questions. While we periodically review responses and answers, please note when this FAQ was last updated as information may have changed since then.

_Last updated on April 28, 2025._
