Skip to main content
Pipedream is useful when you want a webhook trigger plus small JavaScript or Python code steps for cleanup, dedupe, and routing.

Prerequisites

  • A Twexapi API key
  • A Pipedream HTTP trigger
  • An MCP-capable agent connected to https://api.twexapi.io/mcp
  • Optional connected accounts for Slack, Sheets, Airtable, or a database

Webhook-first flow

  1. Create an HTTP / Webhook trigger in Pipedream.
  2. Ask an MCP-capable agent to collect Twexapi rows.
  3. POST strict JSON to the Pipedream endpoint.
  4. Use a code step to normalize and dedupe rows.

JavaScript normalization step

Agent prompt

Direct REST step

Use a Pipedream code step when the workflow should continue through REST after the initial MCP handoff.

Testing checklist

  • Confirm the trigger body is valid JSON.
  • Use tweet_id or user_id as the dedupe key.
  • Store next_cursor in Pipedream data stores for scheduled continuation.
  • Keep TWEXAPI_API_KEY in Pipedream environment variables.