App
Reverse App requesting means plugins can access App data in Dify. This module supports both streaming and non-streaming App calls.
Endpoints Type:
For
Chatbot/Agent/Chatflow
type applications, they are all chat-type applications, having the same input and output parameters, thus can be uniformly viewed as a Chat Interface.For Workflow applications, they occupy a separate Workflow Interface.
For Completion (text generation) applications, they occupy a separate Completion Interface.
Note: Plugins can only access Apps within the same Workspace as the plugin.
Requesting Chat Interface Entry Point
Entry
Endpoint Specification
When response_mode
is streaming
, the interface returns Generator[dict]
, otherwise returns dict
. For specific interface fields, refer to ServiceApi
return results.
Example
We can request a Chat type App in an Endpoint
and directly return the results:
Requesting Workflow Endpint Entry Point
Entry
Endpoint Specification
Requesting Completion Endpoint
Entry
Endpoint Specification
Last updated