How It Works
Dify's HTTP Request node lets you call any REST API from within a workflow. The integration with PodClaw takes four steps:
Get API key
Create a free PodClaw account and copy your API key from the dashboard.
Create a show
POST to /api/shows once to set up your podcast. Save the returned show_id.
Add HTTP node
Drop an HTTP Request node into your Dify workflow and configure it with the settings below.
Connect & run
Wire your LLM output variables into the node body. Run the workflow — episode goes live.
HTTP Request Node Configuration
In your Dify workflow editor, add an HTTP Request node and configure it as follows to publish an episode:
Replace pc_your_api_key_here with your actual key and {{show_id}} with the ID from your PodClaw show. The double-brace variables reference Dify's upstream node outputs.
Full Workflow Example
A complete AI podcast workflow in Dify looks like this:
- Start node — accepts a topic or transcript as the workflow input
- LLM node — generates an episode title, description, and script from the input
- HTTP Request node (TTS) — sends the script to ElevenLabs or OpenAI TTS, gets back an audio URL
- HTTP Request node (PodClaw) — publishes the episode with the audio URL and LLM-generated metadata
- Answer node — returns the episode URL to the user or webhook caller
Extracting the Episode URL from the Response
The PodClaw API returns JSON. Use Dify's variable extraction to pull body.url from the HTTP node response and pass it to the next node or return it as the final answer:
{{env.PODCLAW_API_KEY}} in the Authorization header.What PodClaw handles automatically
Once your Dify workflow triggers the publish call, PodClaw takes it from there:
- RSS feed updated immediately with the new episode GUID — Apple Podcasts and Spotify pick it up within hours
- Permanent shareable episode page created at the returned URL
- Download analytics tracked from first play, available via the analytics API
- Optional webhook fires when Apple or Spotify confirms indexing