---
title: "Test a workflow before publishing it"
description: "Run a workflow yourself in the test sandbox, as a guest or as a real contact, check which path it takes, then publish it."
url: https://help.gleap.ai/fr/articles/315-test-a-workflow-before-publishing-it
collection: "Workflows"
updated: 2026-11-18
language: fr
alternates: [en]
---

# Test a workflow before publishing it

Run a workflow yourself in the test sandbox, as a guest or as a real contact, check which path it takes, then publish it.

A workflow reads correctly as a diagram and behaves differently in practice more often than anyone expects. The test sandbox lets you run it before customers do. It's available for conversation workflows that run in the messenger (the widget); workflows limited to other channels, pipeline and survey automations don't have it.

### Run a test

1.  Open the workflow and click **Test** in the builder header. The **Test workflow** panel opens.
    
2.  Choose who you are: **Guest** for an anonymous visitor, or **Contact** to run as one of your real contacts.
    
3.  For **Contact**, find someone with **Search contacts** and pick them.
    
4.  Click **Save & run**. It saves your draft and starts the workflow in the real messenger.
    
5.  Go through the flow as a customer would: type, click buttons, and follow it wherever it goes. The **Events** timeline shows what happened at each step.
    
6.  Click **Open conversation** to check the ticket the run created, including the attributes it set. To try another path, click **Save & restart**.
    

![The Test workflow panel with a fictional contact selected, before running the test in the Pied Piper demo project.](https://staticfiles.gleap.io/p613b5dd730aed737108f87ab/s9TaIhevfzKQHG0DK2MdE8LBlVcZP0pPxc8Ovtges1l5BeqVVEFXyrq6n5E9h1WTPUDd9RK0LEZ.png)

Test runs create real conversations in your inbox, marked **Test**, so they're easy to recognise and archive.

> **Warning:** On a live workflow, a test runs the published version, not your unpublished changes. Publish the changes first, or **Duplicate** the workflow and test the draft copy.

### Test as a specific contact

Run the flow as a real contact as soon as your workflow branches on who someone is. A condition on the plan, the language or a custom attribute can only be verified by running it as somebody who has that value, and as somebody who doesn't. Testing as yourself proves the flow works for you, which is rarely the case that breaks.

> **Info:** Test the awkward personas on purpose: a customer with no plan set, one whose name is missing, one who doesn't match any of your conditions. Those are the paths nobody draws, and everybody eventually hits.

### What to check

-   Every path, including the ones you expect nobody to take.
    
-   That a person can still be reached at the end, whichever way the flow went.
    
-   That API steps return what you assumed, and that the flow survives when they don't.
    
-   That collected answers land on the attributes you intended. Check the ticket afterwards, not just the conversation.
    

### Then publish

Testing doesn't put a workflow live; publishing does. Click **Publish** (or **Publish changes** on a live workflow). If something turns out wrong afterwards, **Unpublish** in the header's **⋯** menu stops the workflow straight away, without you having to unpick it under pressure.

### Related

-   [Build a workflow](https://help.gleap.ai/en/articles/311-build-a-workflow.md)
    
-   [Workflow steps reference](https://help.gleap.ai/en/articles/312-workflow-steps-reference.md)
    
-   [Call your own API from a workflow](https://help.gleap.ai/en/articles/314-call-your-own-api-from-a-workflow.md)
