Function Call with OpenAI using Bubble.io

Поділитися
Вставка
  • Опубліковано 3 лип 2024
  • The Fantastic New OpenAI Function Call Feature using Bubble.io
    OpenAI has recently released the Function Call feature which allows you to define an object schema and have OpenAI respond with data in that schema. This unlocks many possibilities for generating custom structured APIs using OpenAI.
    In this video, I demonstrate how Function Call works and how you can implement it using Bubble - no-code app platform. I show a sample Bubble app where a user can enter text and get 5 UA-cam video titles as an OpenAI response. Normally, OpenAI would return the titles in a chunk of text but with Function Call, we can instruct OpenAI to return an object with 5 title fields.
    This allows us to display the 5 titles individually within the Bubble app using a repeating group. The Function Call feature makes it easy to generate structured data responses from OpenAI to build tailored APIs without any code.
    Hope you found this useful! Let me know if you have any questions or need help implementing Function Call for your use case.
    0:00 - Introduction and opening remarks
    1:22 - Explaining normal OpenAI API usage
    2:54 - Introducing function calling feature
    4:38 - Building a demo in Bubble
    6:31 - Calling OpenAI endpoints from Bubble
    8:06 - Returning JSON response and displaying in UI

КОМЕНТАРІ • 6

  • @ronmartinez8781
    @ronmartinez8781 7 місяців тому +1

    Nicely delivered. Appreciate that you got right into it, rather than show us building a UI, authorization, etc. Please be encouraged to do more.

  • @michaelfraser7010
    @michaelfraser7010 11 місяців тому +1

    thank you - very helpful. One thing I am curious about is the ability to update multiple fields in a database with a single call, rather than using one call for each field. Would be great if you could demonstrate or speak to that!

  • @josecolunga
    @josecolunga 7 місяців тому

    Awesome! Thanks!

  • @marcodisanto
    @marcodisanto 8 місяців тому

    Fantastic, exactly what I was looking for! How does it work if the individual values need to be inserted into a table? For example, 10 rows by 3 columns?

  • @guillemcastells9769
    @guillemcastells9769 9 місяців тому

    After seeing the video lots of times I still try to make the function JSON Schema, if doesn't mind, would you help me?

    • @josecolunga
      @josecolunga 7 місяців тому

      {
      "model": "gpt-4-1106-preview",
      "messages": [
      {
      "role": "system",
      "content": "Tu nombre es Panda. Sos un amigable asistente de IA. Serás amable."
      },
      {
      "role": "system",
      "content": "¿Cómo puedo ayudarte hoy?"
      },
      {
      "role": "user",
      "content":
      }
      ],
      "functions": [
      {
      "name": "gen_Titles",
      "description": "Generates titles for the given text",
      "parameters": {
      "type": "object",
      "properties": {
      "paragraphs": {
      "type": "array",
      "items": {
      "type": "object",
      "properties": {
      "Id": {
      "type": "string",
      "description": "The sequence number of the title"
      },
      "Title": {
      "type": "string",
      "description": "The title of the blog"
      }
      },
      "required": ["Id", "Title"]
      }
      }
      }
      }
      }
      ],
      "function_call": {
      "name": "gen_Titles"
      }
      }