# Zapier — Dify Integrations
> zapier.com/apps/dify/integrations
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).
- Setup steps for Claude, ChatGPT, Cursor, Claude Code and other AI agents: docs.zapier.com/mcp/get-started/quickstart.md

## Identity
Dify is an app lets you build and integrate AI apps fast with visual workflows, LLMs, APIs, and RAG for intelligent automation and chat experiences.

- App slug: dify
- Operations published here: 5 (1 event, 4 functions)

## Authentication
Zapier connects to Dify via other. Your code references a connection, not a raw credential.

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection dify
```

## Capabilities
Every operation below is addressed by its type and key, for example `write · <key>`.

Zap editor: every operation below is also configurable without code at zapier.com/apps/dify/integrations — useful for a human in the loop, not usually for an agent calling the SDK or MCP directly.

### Getting Started
- **MCP**: connect Dify through mcp.zapier.com to expose these operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`
- **CLI**: `npm install -D @zapier/zapier-sdk-cli` (see Authentication above to connect an account)

### Example
- **MCP**: ask your MCP client to call the tool for this operation's `type · key` — for example, `write · file_upload`.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: conn } = await zapier.findFirstConnection({ app: "dify", owner: "me" });

const { data } = await zapier.runAction({
  app: "dify",
  actionType: "write",
  action: "file_upload",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action dify write file_upload \
  --inputs '{}'
```

Paginating results: some calls return more than fits in one response — for example, listing Dify's actions, or a search action's matches. In TypeScript, iterate with `.pages()` or `.items()` rather than assuming a single page:

```typescript
for await (const action of zapier.listActions({ app: "dify" }).items()) {
  console.log(action.key);
}
```

From the shell, the same `--cursor`/`--max-items`/`--page-size` flags work on `list-actions` and directly on `run-action`. Add `--json` for output a script can parse instead of formatted text:

```bash
npx zapier-sdk list-actions dify --page-size 50 --max-items 200 --json
```

### Events (1)

Events fire when something happens in Dify. Use them to start a run.

#### New Feedback
Triggers when a new feedback is submitted on your Dify application. Feedbacks can include likes, dislikes, and user comments on AI responses.

- Type: read · Key: `get_feedbacks`
- Requires: nothing
- SDK: `runAction({ app: "dify", actionType: "read", action: "get_feedbacks" })`
- CLI: `npx zapier-sdk run-action dify read get_feedbacks`

### Functions (4)

Functions change something in Dify.

#### Upload File
Upload a file for use when sending messages, enabling multimodal understanding of images and text. Supports any formats that are supported by your application.

- Type: write · Key: `file_upload`
- Requires: file, user
- SDK: `runAction({ app: "dify", actionType: "write", action: "file_upload" })`
- CLI: `npx zapier-sdk run-action dify write file_upload`

#### Get Suggested Questions
Retrieves AI-generated follow-up question suggestions based on a previous message. Useful for guiding conversation flow and improving user engagement.

- Type: write · Key: `get_suggested_questions`
- Requires: message_id, user
- SDK: `runAction({ app: "dify", actionType: "write", action: "get_suggested_questions" })`
- CLI: `npx zapier-sdk run-action dify write get_suggested_questions`

#### Send Message Feedback
Provides feedback on a Dify AI message. Use this to capture user satisfaction with likes, dislikes, and optional comments to help improve AI responses.

- Type: write · Key: `message_feedback`
- Requires: message_id, user
- Optional: rating, content
- SDK: `runAction({ app: "dify", actionType: "write", action: "message_feedback" })`
- CLI: `npx zapier-sdk run-action dify write message_feedback`

#### Send Chat Message
Send a message to the Dify chat application and receive an AI-generated response. Supports continuing previous conversations and custom input variables.

- Type: write · Key: `send_chat_message`
- Requires: query, user
- Optional: conversation_id, inputs, response_mode, auto_generate_name
- SDK: `runAction({ app: "dify", actionType: "write", action: "send_chat_message" })`
- CLI: `npx zapier-sdk run-action dify write send_chat_message`

## Popular integrations
- [Dify + Telegram](zapier.com/apps/dify/integrations/telegram.md)
- [Dify + Gmail](zapier.com/apps/dify/integrations/gmail.md)
- [Dify + Facebook Messenger](zapier.com/apps/dify/integrations/facebook-messenger.md)
- [Dify + Apify](zapier.com/apps/dify/integrations/apify.md)
- [Dify + Google Sheets](zapier.com/apps/dify/integrations/google-sheets.md)
- [Dify + Slack](zapier.com/apps/dify/integrations/slack.md)
- [Dify + Google Drive](zapier.com/apps/dify/integrations/google-drive.md)
- [Dify + Facebook Pages](zapier.com/apps/dify/integrations/facebook-pages.md)
- [Dify + Notion](zapier.com/apps/dify/integrations/notion.md)
- [Dify + monday.com](zapier.com/apps/dify/integrations/monday.md)
- [Dify + Discord](zapier.com/apps/dify/integrations/discord.md)
- [Dify + YouTube](zapier.com/apps/dify/integrations/youtube.md)
- [Dify + Evernote](zapier.com/apps/dify/integrations/evernote.md)

## Links
- Full app page: zapier.com/apps/dify/integrations
- MCP: zapier.com/mcp/dify
- SDK: npmjs.com/package/@zapier/zapier-sdk