Skip to main content

CrewAI quickstart

Give a CrewAI agent a real inbox with prompt-injection signals and optional human approval before outbound mail.

pip install 'ujex-postbox[crewai]'
from ujex_postbox import PostboxClient
from ujex_postbox.integrations.crewai import (
PostboxListTool,
PostboxReadTool,
PostboxSendTool,
postbox_tools,
)

client = PostboxClient(device_key="ap_live_...", agent_id="agent-hello")

email_tool, read_tool, list_tool = postbox_tools(
client,
agent_id="agent-hello",
)

# Pass the tools into your CrewAI Agent:
# agent = Agent(..., tools=[email_tool, read_tool, list_tool])

PostboxSendTool sends mail from the agent inbox. Use require_human=True for high-impact sends. PostboxReadTool reads a message by id. PostboxListTool lists recent inbound or outbound messages for an agent.