> For the complete documentation index, see [llms.txt](https://docs.codewords.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.codewords.ai/~/revisions/9n8QZWQLRumtIxQk1QAV/core-concepts/testing-and-running-workflows.md).

# Testing and running Workflows

Learn how to test and run your CodeWords workflows with Cody or manually. Validate integrations, monitor execution logs, and troubleshoot errors with the detailed Run page.

### Overview

Once your workflow is built, CodeWords gives you two ways to test and run it — through **Cody** for automated validation, or manually through the **Run page** for detailed inspection. Both methods help ensure your automations perform reliably before deployment.

### **1. Testing Your Workflows**

#### Let Cody test for you

The fastest and most reliable way to validate your workflow is to ask Cody to test it automatically. Cody simulates real execution, verifying that all connections, steps, and data flows work as expected — without needing manual setup.

**You can say:**

* “Test this workflow with sample data and show me the results.”
* “Run a test using this example: \[paste your real data].”
* “Can you test this automation and check if it works correctly?”

**Cody automatically checks that:**

* All integrations are properly connected
* Data flows smoothly between steps
* Outputs match your expectations
* Error handling behaves correctly when something fails

This automated validation catches most issues before you ever run the workflow manually.

#### **Manual Testing Through the UI**

Once Cody’s automated tests succeed, you can manually verify with real data especially for production workflows or after major updates.

**When to test manually:**

* After Cody’s test passes, but before deploying
* When testing real-world scenarios or live integrations
* After editing or updating a workflow

**How to test manually:**

1. Go to your workflow’s **Run page:**

   ```
   https://codewords.agemo.ai/run/{your-workflow-id}
   ```

* Prepare your test data using realistic examples.
* Click **Run** and monitor execution in real-time through progress logs.
* Verify that all outputs and actions match your expectations.
* Try a few input variations to ensure reliability under different conditions.

<figure><img src="https://3096686217-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC0KQHHlFG9y1F0pBotb8%2Fuploads%2F3IeUBM0kRdmDvjd0jeDP%2Frun_wf.gif?alt=media&amp;token=55f5736b-d6fb-4494-b08a-b0c87b370c8b" alt=""><figcaption><p>Accessing the Run Page of a Workflow</p></figcaption></figure>

### **2. Running Workflows**

Once testing is complete, you can run your workflow directly either from the chat interface or through the **Run page** for detailed tracking.

#### **Run Directly from Chat**

You can trigger and test workflows directly from the same chat where they were created by switching to **Run Mode**. This allows for quick validation and immediate feedback on how your automation performs.

#### **Run Page Overview**

Each time a workflow is executed — manually, on schedule, or via a trigger — a new Run page is generated. This serves as a complete execution log and audit trail of the process.

**Each Run page includes:**

* **Status:** Success, Failed, or In Progress
* **Timestamps:** When each step was executed
* **Data flow:** Inputs and outputs for every step
* **Error details:** Full diagnostics if something failed

If an automation doesn’t behave as expected, the Run page is the first place to check for detailed logs and troubleshooting information.

<figure><img src="https://3096686217-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC0KQHHlFG9y1F0pBotb8%2Fuploads%2FbohbjeyjFaSSc9r6W2BV%2FArea.gif?alt=media&amp;token=92b02d3c-9daf-4ad7-9a8f-91cf346526ff" alt=""><figcaption><p>Accessing the Run Page within the chat</p></figcaption></figure>


---

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.codewords.ai/~/revisions/9n8QZWQLRumtIxQk1QAV/core-concepts/testing-and-running-workflows.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
