Hooks / Webhooks can only be created on workflow level not step? How to implement hooks in tool calls for DurableAgent? #139
-
|
I am trying to build some "ask for Approval" tool in my durable agent: https://useworkflow.dev/docs/api-reference/workflow-ai/durable-agent And as I understand this, it would be really cool to provide this as a tool. But I cant use webhooks aka createWebhook in a "use step" function. It needs to be in workflow. Which kinda doesn't make sense in this setup wdyt? Looking forward to hearing ideas how to solve this! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
In the same doc you mentioned, we have an example where you can provide tools that aren't steps (so they actually run in the workflow runtime). This means you can use sleep, hook (and hence, webhook) in tools: |
Beta Was this translation helpful? Give feedback.
In the same doc you mentioned, we have an example where you can provide tools that aren't steps (so they actually run in the workflow runtime). This means you can use sleep, hook (and hence, webhook) in tools:
https://useworkflow.dev/docs/api-reference/workflow-ai/durable-agent#tools-with-workflow-library-features