This document details how plugins can reverse invoke App services within the Dify platform. It covers three types of interfaces Chat interface (for Chatbot/Agent/Chatflow applications), Workflow interface, and Completion interface, providing entry points, invocation specifications, and practical code examples for each.
Chatbot/Agent/Chatflow
type applications, they are all chat-based applications and thus share the same input and output parameter types. Therefore, they can be uniformly treated as the Chat Interface.response_mode
is streaming
, this interface will directly return Generator[dict]
. Otherwise, it returns dict
. For specific interface fields, please refer to the return results of ServiceApi
.
Endpoint
and return the result directly.