Shared Chatbot Backend · Deployed
The common chatbot backend for Mesonsoft, sQuark and myfamilyassistant — deployed & verified in sQuarkAI.
Deployment
Deployed & verified. Everything a shared chatbot backend needs — and nothing it doesn't.
| Item | Value |
|---|---|
| New chat endpoint | https://bak9x8gml8.execute-api.us-east-2.amazonaws.com/llm/chat |
| Lambda | mesonx-bot-prod-llm-proxy · python3.12 · 1024MB · ✓ Active |
| Secret | mesonx-bot-prod/api-keys · gemini ✓ openrouter ✓ aimlapi ✓ |
| Resources deployed | 13 — Lambda, API Gateway, 2 DynamoDB, secret, IAM, logs |
| Live chat test | HTTP 200, real Gemini reply ✓ |
| Cost | ~$1–3/mo — well under the $50 ceiling |
Cost-effectiveness
The design keeps the chatbot's runtime footprint to the bare minimum.
$0.40 Secrets Manager secret
Runtime path
Every chat request walks an ordered failover chain — the first provider that succeeds answers; a single upstream hiccup never surfaces as an error.
provider_order = [requested] + [gemini, openrouter, bedrock] — the caller's choice is always tried before the fallbacks.(gemini-flash-latest)(meta-llama/llama-3.1-8b-instruct)(anthropic.claude-3-5-haiku-20241022-v1:0) — last resortclaude-3-5-haiku → claude-3-haiku → claude-v2:1 → amazon.titan-text-express → meta.llama3-8b-instruct — stops on the first that accepts.chat.php proxy on all three sites — so the chain runs server-side and the browser only ever talks to its own origin.