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
- Create an HTTP / Webhook trigger in Pipedream.
- Ask an MCP-capable agent to collect Twexapi rows.
- POST strict JSON to the Pipedream endpoint.
- 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_idoruser_idas the dedupe key. - Store
next_cursorin Pipedream data stores for scheduled continuation. - Keep
TWEXAPI_API_KEYin Pipedream environment variables.