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...
great tutorial! how do you create a "create new message" step in your workflow? I cannot find it in my bubble project. Thanks
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/
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.
Nevermind, understood that it makes the actual text JSON safe, not the whole JSON String. Anyway, Thanks again!
Great video! Some times I received this message when I use de API: "could not connect to remote service", is it normal?
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.
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