diff --git a/app.py b/app.py index cc30920..acebb20 100644 --- a/app.py +++ b/app.py @@ -296,215 +296,258 @@ async def root(request: Request):
SERVICE: MESSAGE ROUTING FOR LETTA AGENTS -VERSION: 1.0.0 -STATUS: OPERATIONAL -HOSTING: FREE SERVERLESS DEPLOYMENT-
SEND ONE-TIME MESSAGE:
+Message scheduling and routing for Letta agents
+Schedule a one-time message:
curl -X POST https://letta--switchboard-api.modal.run/schedules/one-time \\
-H 'Authorization: Bearer YOUR_LETTA_API_KEY' \\
-H 'Content-Type: application/json' \\
-d '{
- "agent_id": "agent-xxx",
- "execute_at": "2025-11-13T09:00:00Z",
- "message": "Hello from Switchboard!"
+ "agent_id": "agent-xxx",
+ "execute_at": "2025-12-09T09:00:00Z",
+ "message": "Hello from Switchboard!"
}'
- CREATE RECURRING SCHEDULE:
+ +Create a recurring schedule:
curl -X POST https://letta--switchboard-api.modal.run/schedules/recurring \\
-H 'Authorization: Bearer YOUR_LETTA_API_KEY' \\
-H 'Content-Type: application/json' \\
-d '{
- "agent_id": "agent-xxx",
- "cron": "0 9 * * 1-5",
- "message": "Daily standup reminder"
+ "agent_id": "agent-xxx",
+ "cron": "0 9 * * 1-5",
+ "message": "Daily standup reminder"
}'
- NATURAL LANGUAGE SCHEDULING SUPPORT
- -INSTALLATION:
-git clone https://github.com/cpfiffer/letta-switchboard.git -cd letta-switchboard/cli -go build -o letta-switchboard -./letta-switchboard config set-api-key YOUR_LETTA_API_KEY-
USAGE:
-# Send immediately -./letta-switchboard send --agent-id agent-xxx --message "Hello!" - -# Schedule with natural language -./letta-switchboard send --agent-id agent-xxx --message "Reminder" --execute-at "tomorrow at 9am" -# Recurring schedule -./letta-switchboard recurring create --agent-id agent-xxx --message "Daily standup" --cron "every weekday"-
POST /schedules/one-time - Create a one-time schedulePOST /schedules/recurring - Create a recurring scheduleGET /schedules/one-time - List your one-time schedulesGET /schedules/recurring - List your recurring schedulesGET /schedules/one-time/{id} - Get specific one-time scheduleGET /schedules/recurring/{id} - Get specific recurring scheduleDELETE /schedules/one-time/{id} - Delete one-time scheduleDELETE /schedules/recurring/{id} - Delete recurring scheduleGET /results - List execution resultsGET /results/{schedule_id} - Get result for specific scheduleAuthorization: Bearer YOUR_LETTA_API_KEY
- WEB DASHBOARD - Manage schedules in browser
-DOCUMENTATION - Full technical reference
-SUPPORT - Issue tracker
-JSON API - View as JSON response
+Natural language scheduling from your terminal:
+# Install +git clone https://github.com/cpfiffer/letta-switchboard.git +cd letta-switchboard/cli && go build -o letta-schedules +./letta-schedules config set-api-key YOUR_LETTA_API_KEY + +# Send a message +./letta-schedules send --agent-id agent-xxx --message "Hello!" + +# Schedule with natural language +./letta-schedules send --agent-id agent-xxx --message "Reminder" --at "tomorrow 9am" + +# Create recurring schedule +./letta-schedules recurring create --agent-id agent-xxx --cron "every weekday" --message "Standup"+ +
Authorization: Bearer YOUR_LETTA_API_KEY
+