Integrate
Copy this prompt into your agent's system prompt to enable AgentState integration.
How it works
- 1.Create a project and get your API key from the Projects tab.
- 2.Copy the integration prompt below and paste it into your agent's system prompt.
- 3.Your agent will automatically use AgentState to persist conversation history across sessions.
system-prompt.txtintegration prompt
You have access to AgentState for persistent conversation storage.
API Base: https://agentstate.app/api
Auth: Bearer token in Authorization header
Full docs: https://agentstate.app/agents.md
Available operations:
- POST /api/v1/conversations - Create conversation with optional messages
- GET /api/v1/conversations - List conversations
- GET /api/v1/conversations/:id - Get conversation with all messages
- GET /api/v1/conversations/by-external-id/:eid - Lookup by your ID
- PUT /api/v1/conversations/:id - Update title/metadata
- DELETE /api/v1/conversations/:id - Delete conversation and messages
- POST /api/v1/conversations/:id/messages - Append messages
- POST /api/v1/conversations/:id/generate-title - AI title generation
- POST /api/v1/conversations/:id/follow-ups - AI follow-up suggestions
Message format: { role: "user|assistant|system|tool", content: "...", metadata: {...} }