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

# Dify

> Monitor Dify workflows and chatflows with Muster.

## Setup

### 1. Register in Muster

Dashboard → **Add Agent**:

* Name: your Dify app name
* Framework: `DIFY`

### 2. Add an HTTP node

In your Dify workflow, add an **HTTP Request** node as the last step:

| Setting      | Value                                                         |
| ------------ | ------------------------------------------------------------- |
| Method       | POST                                                          |
| URL          | `https://app.getmuster.io/api/v1/jobs/{{sys.run_id}}/quality` |
| Content-Type | application/json                                              |

**Body:**

```json theme={null}
{
  "agent_id": "your-dify-app-name",
  "job_id": "{{sys.run_id}}",
  "overall_passed": {{#if output}}true{{else}}false{{/if}},
  "checks": [
    {
      "check_id": "output_not_empty",
      "severity": "HIGH",
      "passed": {{#if output}}true{{else}}false{{/if}}
    }
  ]
}
```

<Note>
  Use `sys.run_id` as the `job_id` — it's unique per Dify execution and makes it easy to correlate Muster signals with Dify logs.
</Note>
