CrewAI
Show messages from a CrewAI Crew or Flow and handle pauses for human input.
Expose a Crew or Flow over AG-UI
Follow the CrewAI frontend guide to expose a Crew or Flow with ag-ui-crewai. For FastAPI, use add_crewai_flow_fastapi_endpoint to expose a Flow. Keep Flow state and its human-input pauses in the server integration.
First React integration
Follow Connect an AG-UI endpoint with your endpoint URL and native thread ID. Ghost renders messages from the native client. Keep the client available when your view needs to read Flow state or submit human input.
Validate shared state before using it in the view. The checked example covers the AG-UI client. Keep execution, persistence, and authorization on your server.
Customize for the job
A research workflow can render tasks or artifacts beside the transcript rather than forcing every state change into a message. Use native shared-state notifications and MessageParts.renderers for validated custom parts. Do not infer a boolean tool approval from every human-input pause.
Troubleshooting
An HTTP success with no answer often means the endpoint speaks a different protocol or protocol version. Confirm the server route, credentials and event content type before changing Ghost. For unavailable native operations, retain the native API or implement a narrow application adapter; do not report unsupported behavior as success. See CrewAI's documentation and stability for each side of the boundary.