Template name
iMessage calorie tracking assistant, powered by AI.

iMessage calorie tracking assistant powered by AI.
bun installcp .env.example .envFill in the required keys:
| Variable | Source |
|---|---|
SENDBLUE_API_KEY / SENDBLUE_API_SECRET | sendblue.co |
SENDBLUE_FROM_NUMBER | Your Sendblue phone number |
UPSTASH_REDIS_REST_URL / UPSTASH_REDIS_REST_TOKEN | console.upstash.com |
REDIS_URL | Same Upstash Redis in redis:// format |
OPENAI_API_KEY | platform.openai.com |
USDA_API_KEY | fdc.nal.usda.gov (free) |
bun run devvercel deployDeploys to 3 regions: US East (iad1), London (lhr1), Tokyo (hnd1).
Point your Sendblue incoming message webhook to:
https://your-app.vercel.app/webhooks/sendbluecaltext/ apps/ api/ # Hono API server src/ index.ts # Routes + webhook handler bot.ts # Chat SDK singleton router.ts # Onboarding vs assistant routing workflows/ handle-message.ts # Main message handler onboarding.ts # Multi-step onboarding reminder-loop.ts # Daily reminders + summaries packages/ ai/ # AI agent + tools db/ # Upstash Redis data layer shared/ # Types, locale, timezone utils