Skip to content

MoMicro-core/MoAssist-server

Repository files navigation

MoMicro Assist Server

Fastify backend for MoMicro Assist with Firebase auth, Stripe premium billing, chatbot management, public widget embeds, websocket messaging, AI replies, and local vector search.

Start

npm start

Main docs

  • Swagger UI: /docs
  • Firebase auth page: /static/auth.html
  • Widget script: /chat/script/:chatbotId
  • Widget iframe: /chat/iframe/:chatbotId

Core flow

  1. Authenticate with Firebase and exchange the Firebase token for a backend session at /v1/auth/session.
  2. Create a chatbot in /v1/chatbots. Set settings.defaultLanguage (for example english, german, french) and provide text fields in that language. To list allowed languages, use GET /v1/chatbots/languages. To edit only one translated language without GPT retranslation, use PATCH /v1/chatbots/:chatbotId/languages/:language.
  3. 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=en or /chat/iframe/:chatbotId?lang=german).
  4. Start a chatbot trial with /v1/subscription/trial or buy chatbot premium with /v1/subscription/checkout (chatbotId is required).
  5. Upload pdf, txt, or json files to /v1/chatbots/:chatbotId/files (premium/trial chatbot only).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors