For @AirDevCo#airhack I integrated GPT-3 with @bubble.
The project I created is called 3Word Review
User only needs 3 words and 3Word creates a complete show review.
Here's a glance at the project: loom.com/share/ff9a28a30d90476f93999711154aed03
This thread is how to integrate OpenAI with Bubble
First, you'll need to request access to GPT-3 at openai.com/
Next, explore some of the examples to get some inspiration and use the playground to see if the models can perform as expected for your use case.
After that, I used @getpostman to understand the API a little more and how to interact with GPT-3 via API
Then time to interact with GPT-3 via @bubble
After creating a new project, I installed the API connector in the plugins tab and created a new call.
**Note**
1. You will have to initialise the API before using
2. Set "use as" to data initially
After that, I created a collection to store the response data.
Next, I created a workflow that triggers the API call and stores the response in my database.
**Note**
1. To use the API you have to change "use as" in the API connector to "action"
2. The API call will then be found in "plugins"
By checking in the database, I saw that the call worked with static (hardcoded) data.
Next was to add more flexibility to the call.
I added some dropdown fields and static options that allowed the user to customise their review generation.
After that, I adjusted the body of the request to use the dynamic values from the users dropdown selection.
*In the working version I go on to disable the button until the user has selected options for all the values.
Then, I tested this again and the call was working as expected and stored the customised generated review in the database.
Once this core functionality was working I begun developing 3Word using #airdev canvas, a framework built on Bubble that allows you to develop responsive Bubble applications fast. This deserved its own thread.
This is what allowed me to cut down weeks into a 2 day build
When it came to displaying the data, I used a simple repeating group.
With the aid of filters and conditions you can manipulate what data is actually seen.
Hopefully, that's straight forward for anybody that wants to create impact projects with OpenAI.
I have a newsletter that teaches you how to build software without coding, for more easy breakdowns you can subscribe here: getrevue.co/profile/dominiconorton