Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.montereyfinancial.dev/llms.txt

Use this file to discover all available pages before exploring further.

Monterey integrates Claude AI for two real-time features: template editing and brand guide management. Both use WebSocket connections for streaming responses.

Template AI

The template AI assistant helps generate and refine email template HTML content.

Connection

Connect via WebSocket with a JWT token:
ws://localhost:8000/ws/template-ai?token=<jwt>&session_id=<optional-uuid>
  • token (required): JWT bearer token for authentication
  • session_id (optional): UUID to resume a previous session. Sessions have a 2-hour TTL.

Rate limits

  • 10 requests per minute per user
  • Sessions expire after 2 hours of inactivity

Message types

Send JSON messages through the WebSocket:
Generate a new template from a text prompt.
{
  "action": "generate",
  "prompt": "Create a collections reminder email with a formal tone"
}

Brand guide AI

The brand guide AI manages workspace brand guidelines through a conversational interface.

Connection

ws://localhost:8000/ws/brand-guide-ai?token=<jwt>&session_id=<optional-uuid>
Works the same as the template AI WebSocket with async task handling and cancellation support.

Brand guides

Brand guides store workspace-level branding rules that inform AI template generation:
OperationEndpoint
ListGET /brand-guides/
GetGET /brand-guides/{id}
CreatePOST /brand-guides/
UpdatePUT /brand-guides/{id}
DeleteDELETE /brand-guides/{id}