How to Setup & Use Chat GPT in Bubble.io | API Call Method

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ต.ค. 2024

ความคิดเห็น • 40

  • @mathildevonzahnd
    @mathildevonzahnd 10 หลายเดือนก่อน +1

    Hi and thanks for the video. What is still missing in the bubble community is someone who explains how to to start a Workflow via a Chat command. Maybe that is something you could do one day:)

  • @Kiki-qh7xk
    @Kiki-qh7xk ปีที่แล้ว +1

    Do I have to pay to implement this? For me it gives this message:
    "message": "You exceeded your current quota, please check your plan and billing details."

  • @khatanbaatarbilguun811
    @khatanbaatarbilguun811 ปีที่แล้ว

    thank you very much

    • @thechakor
      @thechakor  ปีที่แล้ว

      You are welcome!

  • @johnteles4613
    @johnteles4613 ปีที่แล้ว +1

    Hey man, you’re vídeo is truly amazing. Thanks for sharing with us!
    I just have one question actually, I didn’t quite understood how you pulled the information into the text element
    Could share the editor link with us to Analyze it?

    • @thechakor
      @thechakor  ปีที่แล้ว +3

      Glad you liked the video. Yes, absolutely! Here is the editor link: bubble.io/page?type=page&name=chat-gpt&id=vpn-landing-page&tab=tabs-1

    • @johnteles4613
      @johnteles4613 ปีที่แล้ว

      @@thechakor thank you so much, man! Very helpful.

  • @kiddozcollection
    @kiddozcollection ปีที่แล้ว

    This is great. Is there anyway to prevent there being a n/n/ at the start of the text?

    • @thechakor
      @thechakor  ปีที่แล้ว +1

      Hey Christopher, Those "

      " comes by default from the API. Unfortunately Bubble does not let us do modify API's response. However when you'll get the response, you can remove the spaces by using regex or other text manipulation functions like truncation which come by default in Bubble.

  • @F_in_the_chat
    @F_in_the_chat ปีที่แล้ว

    hey chakor I followed a guide and made a Python script that I can put my data into and then I can ask questions, but I don't know how to export it to something like bubble. any advice?

    • @thechakor
      @thechakor  ปีที่แล้ว

      Yes you can export the data to Bubble by calling your app's data API. We have already made a tutorial on it which you can view here: th-cam.com/video/srh5u3XdFwE/w-d-xo.html
      Also, you can learn more about DataAPI here: manual.bubble.io/core-resources/api/the-bubble-api/the-data-api

  • @Statsjk
    @Statsjk ปีที่แล้ว

    Hello sir...have you noticed that everytime we get a response from the GPT API in the form of text, the text comes with a prefix - "/n/n" which inserts a two line gap before the first line of the text.... Can you please suggest a way to remove these line breaks. ??

    • @thechakor
      @thechakor  ปีที่แล้ว

      This "/n/n" comes by default from the ChatGPT's API. We are working on introducing a new action to overcome this. For now, you can use "Truncation" or "Find & Replace" to remove that prefix.

  • @muhsinkayikci4886
    @muhsinkayikci4886 ปีที่แล้ว +1

    Unfortunately this is not a chatgpt Api’s as of current still not release yet so instead you are using openai davinci 003 /

    • @thechakor
      @thechakor  ปีที่แล้ว

      Yeah. Thank you for the correction. Davinci 003 is not equivalent to ChatGPT.

  • @Paul-ArnoGarrido
    @Paul-ArnoGarrido ปีที่แล้ว

    Amazing, thank you so much! What would be the associated cost for using it in our application? (what's the pricing and how does it work?)

    • @thechakor
      @thechakor  ปีที่แล้ว +1

      Hey Paul, glad you liked it! ChatGPT cost is calculated in tokens. You can think of tokens as number of words used in API calls. So, 1000 tokens ~= 750 words. You can see this simple table for pricing idea: miro.medium.com/max/828/1*JxrnspobrQ6kBNirLVGxAg.webp
      We are using text-davinci-003 in this tutorial.

    • @Paul-ArnoGarrido
      @Paul-ArnoGarrido ปีที่แล้ว +1

      @@thechakor thank you!

    • @afridahmed3076
      @afridahmed3076 ปีที่แล้ว

      @@thechakor Hey Chakor, i don't understand the Curie, Babbage and Ada thing. Whats that?

    • @xevenau
      @xevenau ปีที่แล้ว

      @@afridahmed3076 just different outputs. Davinci is by far the best but cost the most in tokens follow by curie.

  • @paulfaverjon7294
    @paulfaverjon7294 ปีที่แล้ว

    HI, When I do the same thing as you at 7:43, I don't get "result of step 2" but only "result of step 1". Can you explain why ?

    • @thechakor
      @thechakor  ปีที่แล้ว

      That's because you may be using the "Ask ChatGPT - Ask" action in the step 1. It doesn't really matter from which step "number" you're getting the results. Just make sure that you're getting the result from the action "Ask ChatGPT - Ask".

  • @abdullahaljneibi5779
    @abdullahaljneibi5779 ปีที่แล้ว

    Hi, i have a question, I cant seem to display the results. I cant see the “display data” action.

    • @thechakor
      @thechakor  ปีที่แล้ว

      Hey Abdullah, this action by default comes on every Bubble.io app. Please make sure that you have active internet connection. If the issue persists, please send us Bubble editor link so we could take a look on that.

  • @AartiLather
    @AartiLather ปีที่แล้ว

    Hi Chakor, I made a page following your video but the data is not displayed on the screen, I can see the data in debug mode, could you help me out

    • @thechakor
      @thechakor  ปีที่แล้ว

      You can store the data into a "text" state of your page & place an element on the page where set it to have dynamic data & add the expression to pull the page's text state in which you stored the response from plugin action.

  • @NareshKoundal-o4q
    @NareshKoundal-o4q ปีที่แล้ว

    Sir i am not able to understand where you get chat gpt answer element

    • @thechakor
      @thechakor  ปีที่แล้ว

      You just need to show the transfer the response from ChatGPT action into any Group or its state. Then on text element, use dynamic data & display the data from the group where you stored the answer from ChatGPT.

  • @connorburley4598
    @connorburley4598 ปีที่แล้ว

    Hi Chakor, is there a way to do this where each message you send gets stored in a list (so you can see all the previous messages + the chatGPT answers)? And is there a way that the context of the original prompt can be kept so it can be conversational through the chat box, as with the current method using the API each message you send lacks the context of the previous question.

    • @thechakor
      @thechakor  ปีที่แล้ว +3

      Hey Connor, absolutely it can be stored with responses. You could have a data type named "AI Responses" with 2 text fields named "Prompt" & "Response".
      Then after the action where you get ChatGPT's response, you could either create a new thing in DB & store current prompt & answer or just store in the state if you would not like to save responses to the DB.
      About conversion history, we're working on it & will soon come up with this tutorial as well.

    • @m3gatoile855
      @m3gatoile855 ปีที่แล้ว

      Hey! I saw your conversation and was wondering the same thing. I discussed with Chat gpt, he told me that we could obtain the context ID of a first request then specify it in a second. That would simplify things. Do you think it would be possible?

    • @connorburley4598
      @connorburley4598 ปีที่แล้ว

      @@thechakor thank you! do you have a timeline around when you think you will have a tutorial for those components? am not having much luck working it out myself currently

  • @kiddozcollection
    @kiddozcollection ปีที่แล้ว

    Also regenerate would be good😁

    • @thechakor
      @thechakor  ปีที่แล้ว

      Yeah you could have regenerate button there with "temperature" parameter. This parameter lets you decide how much creative you want the AI to be. You can learn more about it here: platform.openai.com/docs/api-reference/completions/create

  • @williamlundflink787
    @williamlundflink787 ปีที่แล้ว

    please add a bit more detailed step by step. I feel like you are skipping alot of important details!

    • @thechakor
      @thechakor  ปีที่แล้ว

      Hey, please let us know if you have any questions. We'll be more then happy to help!

  • @williamlundflink787
    @williamlundflink787 ปีที่แล้ว

    Heyo! th-cam.com/video/W2V2poftUzA/w-d-xo.html
    How do I make the step 3? Display data

    • @thechakor
      @thechakor  ปีที่แล้ว

      Hey William, if you're familiar with Bubble.io, you need to add a new step/action in workflow that says "Display Data in a Group". Then have a group on frontend & select that group from the action.
      After this you'll be able to pass down the data sent to to that group in to some nested text element which would get the answer from ChatGPT API.