Dify API Access
Call workflows created in Dify from AI Hub through Dify’s chat API (/chat-messages
).
Key Features
- Trigger workflows created in Dify from AI Hub.
Basic Information
Authentication Method
Authenticates using API Key.
Input Parameters
- Base URL (required): Base URL of Dify API (e.g., https://api.dify.ai )
- API Key (required): API key issued by Dify
- User (required): End-user identifier (user-defined for search and statistics)
Supported MCP Tools
send_chat_message
Sends a request to the chat application.
Input Parameters:
query
(required): User input/question contentconversation_id
(optional): Conversation ID, pass the conversation_id from previous messages to continue the conversation based on previous chat history
Usage Example
For example,
- When you input “Send a ‘Hello’ message to Dify AI” as a prompt,
- The LLM calls the
send_chat_message
tool through MCP to send a message to the Dify API. - Then, it responds in the chat based on the tool call results.
API Key Setup Method
- Issue an API key from the Dify platform.
- Select Dify API Access integration in QueryPie AI.
- Enter the Base URL, API key, and user identifier to complete the connection.
Notes
- Keep the created API key secure.
- It’s recommended to use HTTPS for the Base URL.
- Set an appropriate value for the user identifier as it’s used for statistics and search purposes.
Last updated on