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. Setsettings.defaultLanguage(for exampleenglish,german,french) and provide text fields in that language. To list allowed languages, useGET /v1/chatbots/languages. To edit only one translated language without GPT retranslation, usePATCH /v1/chatbots/:chatbotId/languages/:language. - Publish it and install it with the snippet from
/v1/chatbots/:chatbotId/install. You can force widget language from website via?lang=on embed URL (/chat/script/:chatbotId?lang=enor/chat/iframe/:chatbotId?lang=german). - Start a chatbot trial with
/v1/subscription/trialor buy chatbot premium with/v1/subscription/checkout(chatbotIdis required). - Upload
pdf,txt, orjsonfiles to/v1/chatbots/:chatbotId/files(premium/trial chatbot only).