Skip to main content
Use CrewAI when you want separate agents for collection, analysis, and reporting while sharing one Twexapi MCP connection.

Prerequisites

  • Python 3.10+
  • A Twexapi API key from the dashboard
  • An LLM API key supported by CrewAI

Install

Full example

Multi-agent crew

Give only the data-collection agents Twexapi access. Downstream agents can work from the handoff JSON.

Handoff checklist

  • Preserve tweet_id, user_id, author_username, created_at, and source query.
  • Preserve has_more and next_cursor for every paginated call.
  • Store route_used, method, and path so the workflow can be audited.
  • Require human approval before any read_only: false action.

Tool filtering

When a CrewAI role should only discover endpoints, limit that agent to explore. Give twexapi_request only to agents that are allowed to make authenticated API calls.
For production research crews, keep write-capable work in a separate task that asks for explicit approval before any read_only: false call.

Environment variables

.env

Package versions