Fastify backend for MoMicro Assist with Firebase auth, Stripe premium billing, chatbot management, public widget embeds, websocket messaging, AI replies, and local vector search.
npm start- Swagger UI:
/docs - Firebase auth page:
/static/auth.html - Widget script:
/chat/script/:chatbotId - Widget iframe:
/chat/iframe/:chatbotId
- Authenticate with Firebase and exchange the Firebase token for a backend session at
/v1/auth/session. - Create a chatbot in
/v1/chatbots. - Publish it and install it with the snippet from
/v1/chatbots/:chatbotId/install. - Upgrade the user with
/v1/subscription/checkoutto unlock AI and file uploads. - Upload
pdf,txt, orjsonfiles to/v1/chatbots/:chatbotId/files.