MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    ChatGpt intergration

    Scheduled Pinned Locked Moved Unsolved Requests
    59 Posts 7 Posters 26.9k Views 8 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      SILLEN 0 @sdetweil
      last edited by

      @sdetweil ok i tried with that module and all i changed was in the googleassistant module it should have sent the payload of everything after “chatgpt” but when i say somthing like chatgpt say banana it does send the notification and the notification gets recieved and the module displays an answer but this is what it looks like: 3436554f-9a42-4db7-813c-e6a616eee989-image.png
      as you see it says undefined and just answer a random question. this is my recipe:

      var recipe = {
        transcriptionHooks: {
          "ASK_QUESTION": {
            pattern: "chatgpt (.*)",
            command: "ASK_QUESTION"
          }
        },
      
        commands: {
          "ASK_QUESTION": {
            notificationExec: {
              notification: "OPENAI_REQUEST",
              payload: (params) => {
                console.log("Debug: params received", params);
                return {
                  question: params[1]
                }
              }
            }
          }
      
      

      the weird thing is is that if im not mistaken in the logs of magicmirror it should say params recieved and then params after but it doesnt. why do you think the module says undefined now but in my module the notification gets recieved and the params after “chatgpt” get sent over with it? but in this module it shows up as undefined?

      M D 2 Replies Last reply Reply Quote 0
      • M Offline
        MMRIZE @SILLEN 0
        last edited by

        @SILLEN-0
        The payload should have the strict structure; https://github.com/MMRIZE/MMM-OpenAI#4-request-format

        1 Reply Last reply Reply Quote 0
        • D Offline
          Dresch360 Project Sponsor @SILLEN 0
          last edited by

          @SILLEN-0 This is amazing! Any luck with getting it to work with Google Assistant recipe?

          1 Reply Last reply Reply Quote 0
          • N Offline
            Nage1951 @SILLEN 0
            last edited by

            @SILLEN-0 said in ChatGpt intergration:

            hey everyone. i think most of us have heard of ChatGpt the new revoulutionary ai engine available for free. however the chatgpt api doesnt seem too be free but in my opinion i dont mind. so what would be awsome is to make chatgpt like another voice module but instead of using google assistant or alexa it would use the chatgpt api to listen for input and then display the answer on the screen. this api is crazy i even got it too make a simple magicmirror module for me. i asked chatgpt on how it would create this module and here is its response:

            d16ed205-6f31-4b11-99b8-099050577728-image.png By the way, if you want to integrate chat with support for GPT and other models faster and more conveniently, you can look at Overchat AI - this is a platform that helps to easily connect chatbots using the OpenAI API, without deep technical knowledge. There are already ready-made solutions and a convenient interface for working with different AI models, which saves a lot of time on development.

            if anyone is intrested in this here is the openai api documentation link: https://openai.com/api/

            the idea is really cool! Using ChatGPT as a voice module instead of Google Assistant or Alexa is very promising, especially considering the flexibility and level of understanding of ChatGPT.

            I also played with the API a little and was impressed by how easy it is to integrate it into different projects, including something like MagicMirror. The advantage is that you can set more complex and free queries, not limited to standard voice assistant commands.

            The only thing that bothers me is the cost of the API if you use it often or in large volumes. But for personal projects and prototypes, this is a great option.

            It will be interesting to see how the community implements such integrations and what tricks they come up with!

            Thanks for the link to the documentation, it is useful for a start.

            mumblebajM 1 Reply Last reply Reply Quote 0
            • mumblebajM Offline
              mumblebaj Module Developer @Nage1951
              last edited by

              @Nage1951 ChatGPT has been around for a while now. There is even a module built on it already. Checkout the 3rd party modules list, hamburger menu on top. Not sure if it still works but it is there.

              Check out my modules at: https://github.com/mumblebaj?tab=repositories

              1 Reply Last reply Reply Quote 0
              • 1
              • 2
              • 3
              • 4
              • 5
              • 6
              • 6 / 6
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy