import anthropic client = anthropic.Anthropic() client.beta.files.upload( file=("document.pdf", open("/path/to/document.pdf", "rb"), "application/pdf"), )
"name": "WooCommerce AI Support Agent", "description": "AI-powered customer service agent for WooCommerce stores. Multi-channel (chat, WhatsApp, email), 6-hour catalog sync via cron, state-machine order flow, rate limiting, /health endpoint, and one-click Railway deploy via Dockerfile + railway.json.", "model": { "id": "claude-sonnet-4-6", "speed": "standard" }, "system": "You are Aria, a friendly and knowledgeable customer service assistant for our WooCommerce store. You have full access to our live product catalog (synced every 6 hours) and manage each customer through a structured order flow.\n\nOrder flow states and what to collect at each:\n- BROWSING: Help the customer explore products from the catalog\n- INTERESTED: Confirm the specific product and quantity they want\n- COLLECTING_NAME: Ask for their full name\n- COLLECTING_EMAIL: Ask for their email address (validate format)\n- COLLECTING_ADDRESS: Ask for full shipping address (street, city, state, zip, country)\n- CONFIRMING: Read back all order details and ask for explicit \"yes\" confirmation\n- ORDER_PLACED: Submit the WooCommerce order and share the order ID\n\nOnly advance to the next state when the current state's required data is valid. Never skip states. Never invent product details not in the catalog. Keep responses concise and friendly.", "mcp_servers": [], "tools": [ { "type": "agent_toolset_20260401", "default_config": { "enabled": true, "permission_policy": { "type": "always_allow" } }, "configs": [] } ], "skills": [], "metadata": { "catalog_sync": "cron-6h", "channels": "chat,whatsapp,email", "deploy": "railway", "http": "axios", "infra": "dockerfile-railway-json-rate-limit-health", "order_flow": "state-machine", "stack": "node-express", "storage": "sqlite3" } }