Deploy API Tools with Cloudflare Workers
Getting Started
git clone https://github.com/crazywoola/dify-extension-workers.git
cp wrangler.toml.example wrangler.tomlname = "dify-extension-example"
compatibility_date = "2023-01-01"
[vars]
TOKEN = "bananaiscool"// ⬇️ implement your logic here ⬇️
// point === "app.external_data_tool.query"
// https://api.breakingbadquotes.xyz/v1/quotes
const count = params?.inputs?.count ?? 1;
const url = `https://api.breakingbadquotes.xyz/v1/quotes/${count}`;
const result = await fetch(url).then(res => res.text())
// ⬆️ implement your logic here ⬆️

Other Logic TL;DR
About Bearer Auth
About Parameter Validation
Accessing Logs of Cloudflare Workers
Reference Content
Last updated