Skip to content
Discussion options

You must be logged in to vote

Yes, but I would use Dify's runtime API as the integration boundary rather than trying to execute an exported Dify DSL file inside ADK. ADK does not provide a Dify-workflow executor. Keep the validated workflow published in Dify and expose it to the ADK agent as a function tool (or describe the endpoint with OpenAPI and use an ADK OpenAPI toolset).

For example:

import os
import requests

from google.adk.agents import Agent
from google.adk.tools import ToolContext

DIFY_API_BASE = os.environ["DIFY_API_BASE"].rstrip("/")
DIFY_API_KEY = os.environ["DIFY_API_KEY"]


def run_business_workflow(request: str, tool_context: ToolContext) -> dict:
    """Run the validated Dify business workflow for …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Digital2Slave
Comment options

Answer selected by Digital2Slave
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants