Using JSON-safe with Bubble.io and the OpenAI API | Bubble.io Tutorials | Planetnocode.com

Поделиться
HTML-код
  • Опубликовано: 8 фев 2025
  • Watch all our Bubble tutorials at www.planetnoco...
    This Bubble tutorial is a follow up to our ChatGPT chatbot video where we demonatrated to how create a conversation with the OpenAI API using GPT-3.5-turbo. This videos demonstrates an improvement to our initial chatbot by using the Bubble.io text modifier :formatted as JSON-safe. This can solve many of your JSON syntax errors and OpenAI API errors by correctly escaping punctuation and formating your text input.
    For more no code app building lessons, visit www.planetnoco...

Комментарии • 7

  • @bakersfieldrobotics
    @bakersfieldrobotics Год назад

    great tutorial! how do you create a "create new message" step in your workflow? I cannot find it in my bubble project. Thanks

    • @planetnocode
      @planetnocode  Год назад

      The create a new message step is just the Create a New Thing workflow action with a database called Message. We have many more detailed OpenAI tutorials available on our website: www.planetnocode.com/bubble/openai/

  • @Khorshedify
    @Khorshedify Год назад +1

    Thanks for this, Quite a straight forward fix! One question though, wouldn't it be better to add this in the OpenAI API call step itself? to make sure the whole JSON string is formatted properly? Thanks again quite helpful.

    • @Khorshedify
      @Khorshedify Год назад +1

      Nevermind, understood that it makes the actual text JSON safe, not the whole JSON String. Anyway, Thanks again!

  • @sertrader514
    @sertrader514 Год назад

    Great video! Some times I received this message when I use de API: "could not connect to remote service", is it normal?

    • @planetnocode
      @planetnocode  Год назад

      That's not an error message we have noticed before. OpenAI has at a little downtime over the last few weeks. I would first check the third parties status page when seeing an error message like that.

    • @r00ts88
      @r00ts88 Год назад

      This is a time-out issue on Bubble, especially when OpenAI's response is long. The only workaround I found for now was using Zapier to execute the ChatGPT OpenAI call