Dify Documentation

repository·main·Indexed 41 days ago

https://github.com/langgenius/dify-docs

Official multilingual documentation for the Dify platform, featuring guides on Agent apps, streaming replies, and the Service API reference. Includes technical details on managing Agent conversations, file uploads, speech transcription/synthesis, and API pipeline tooling for OpenAPI specifications.

Tokens
267.1K
Snippets
465
Records
1.3K
Agent score
49%

What's inside Dify

  1. Overview of Dify Workspace capabilities

    main

    Dify provides a workspace to orchestrate, publish, and monitor AI applications. The core capabilities include:

    • Orchestrate: Build complex AI logic using workflows, chatflows, agents, and chatbots on a visual canvas.
    • Knowledge: Ground your applications in specific data by importing documents for retrieval and citation.
    • Publish: Deploy applications as standalone web apps, embed them into existing websites, or integrate them into your own software via API.
    • Monitor: Track application usage, review execution logs, and improve model performance using annotations.
    • Integrations: Extend functionality by connecting model providers, tools, data sources, and external services.
  2. Overview of translation tools and utilities

    main

    The tools/translate/ directory contains utilities to maintain documentation quality and synchronization across English, Chinese, and Japanese:

    • Localization Rules: formatting-zh.md (Chinese) and formatting-ja.md (Japanese) define formatting standards.
    • Terminology Management:
      • termbase_i18n.md: The core terminology database (en/zh/ja).
      • derive-termbase.py: Script to regenerate the termbase from the glossary. Use the --check flag to verify synchronization.
      • check-glossary-keys.py: Validates that i18n keys cited in the glossary exist in the Dify web UI strings.
    • JSON & OpenAPI Utilities:
      • json_formatter.py: A format-preserving JSON writer used when editing docs.json to ensure clean git diffs.
      • openapi/: Utilities for translating OpenAPI specs by extracting translatable fields to markdown and rehydrating them back into JSON.
  3. Overview of Dify capabilities

    main

    Dify is a workspace for orchestrating, publishing, and monitoring AI applications. The platform provides several core functional areas:

    • Orchestrate: Build AI applications using a visual canvas to create workflows, chatflows, agents, and chatbots.
    • Knowledge: Ground your applications in your own data by importing documents for retrieval and citation.
    • Publish: Deploy applications as standalone web apps, embed them into existing websites, or interact with them via API.
    • Monitor: Track application usage, review execution logs, and refine AI responses using annotations.
    • Integrations: Connect to various model providers, tools, data sources, and external services.
  4. Overview of the Dify CLI (difyctl)

    main

    The Dify CLI (difyctl) allows you to execute Dify applications from outside the browser, such as from a terminal, shell scripts, CI/CD pipelines, or AI agents. It bridges the gap between the browser-based application builder and programmatic environments.

    Key Capabilities:

    • Execute Apps: Run any Dify application from the terminal and capture its output.
    • App Discovery: List applications within your workspace and inspect their required input parameters.
    • Flexible Output: Choose between real-time streaming for long responses or structured JSON for script processing.
    • Secure Automation: Use OAuth to sign in once, enabling subsequent automated runs without storing passwords or API keys in scripts.
    • AI Agent Integration: Enables AI agents to detect and invoke Dify applications as tools.
  5. Use the Dify Documentation Glossary for standard terminology

    main
    The Dify Documentation Glossary serves as the single source of truth for all standard terminology used across Dify documentation. Writers, translators, and AI agents should refer to this glossary to ensure consistency in technical terms, core concepts, and UI labels when creating or translating content related to Dify.
  6. Manage Dify Tools

    main

    Dify Tools allow LLMs to interact with external services and APIs (e.g., web searches, database queries, or content processing).

    Where to use tools:

    • Workflow / Chatflow apps: As standalone Tool nodes or within Agent nodes.
    • Agent apps: During the app building process.
    • Legacy Agent apps: By extending the agent with Dify tools.

    Management: All tools are managed via the Integrations > Tools menu in the Dify workspace.

  7. Use the HTTP Request node to connect to external APIs

    main
    The HTTP Request node allows you to integrate your Dify workflow with external web services. You can use it to fetch data, send webhooks, upload files, or perform CRUD operations on remote resources. It supports dynamic configuration using variables from previous nodes and provides built-in mechanisms for authentication, file handling, and error recovery.
  8. Monitor application performance with the Dify Dashboard

    main

    The Dify built-in analytics dashboard allows you to monitor application performance, costs, and user engagement by tracking four key metrics over time:

    • Total Messages: Measures the overall conversation volume.
    • Active Users: Tracks users who have had meaningful interactions (defined as more than one exchange).
    • Average User Interactions: Measures the engagement depth per session.
    • Token Usage: Monitors resource consumption and associated costs.

    You can use the time selector within the dashboard to view trends across different time periods.

  9. Explore Dify publishing options

    main

    Dify provides four primary ways to deploy your applications depending on your use case:

    • Web Apps: Instant, shareable links. Best for testing ideas or serving end users directly without building a custom interface.
    • API Integration: Provides full control over the user experience and data flow. Best for building AI capabilities directly into your own existing products.
    • Embed on Websites: Allows you to deploy your web app as a chat widget or an inline frame on any website, regardless of the website's technology stack.
    • MCP Server: Connects your application to AI tools like Claude Desktop and Cursor, making your app available as a native tool within development workflows.
  10. What is Reverse Invocation in Dify plugins

    main
    Reverse Invocation is a capability that allows Dify plugins to call core services within the main Dify platform. Instead of only interacting with external systems, a plugin can leverage existing Dify resources to extend its own functionality. This allows a plugin to act as a consumer of the platform's internal capabilities.
  11. What is a Trigger Plugin in Dify

    main

    Introduced in Dify v1.10.0, a Trigger Plugin is a specialized plugin type that acts as a bridge between third-party platforms and Dify workflows.

    Unlike functional nodes (Code, Tool, Knowledge Retrieval) that process data within a workflow, a Trigger Plugin converts third-party webhook events into a Dify-compatible input format. This allows external events (e.g., a new email in Gmail or a new issue in GitHub) to automatically start a Dify workflow by parsing the platform's unique event payload into a unified schema that Dify recognizes.

  12. What is a Knowledge Pipeline in Dify

    main

    A knowledge pipeline is a document processing workflow designed to transform raw data into searchable knowledge bases. It functions as an orchestration of different processing nodes and tools to optimize data for accuracy and relevance.

    A standard knowledge pipeline follows a four-step structured flow:

    1. Data Sources: Gathering content from various origins.
    2. Data Extraction: Converting raw data into processable text.
    3. Data Processing: Refining the text to optimize it for search.
    4. Knowledge Storage: Storing the processed data in a format that enables fast and accurate retrieval.

    You can use Dify's built-in pipeline templates for specific use cases or build a custom pipeline from scratch by visually combining and configuring different nodes.