Basic chatGPT chatbot

One simple way to get a full chat gpt feeling in anvil is:

  1. use firestore client side and listen to a document
  2. send the document uid with the question to the server
  3. start a server call/background-task where you stream the openai answer to the firestore document.

Thats scalabe, fast & relatively easy to set up.
(Did it myself and works like a charm)

Also some friendly advice, the chance of getting an answer will (1) be higher if you don’t shit on other peoples implementations and (2) if you don’t threat people with their “competitors”.

Happy coding :wink:

6 Likes