/human_tool

human_tool

Primary LanguageElixir

HumanTool

A ChatGPT plugin to use humans as a tool.

Usage

  1. Start the plugin server:
iex --sname plugin@localhost -S mix
  1. Install the plugin into ChatGPT as a localhost plugin
  2. Start the interface for a human
iex --sname human@localhost lib/human_tool/human.ex

See the video for further details: https://youtu.be/zt0zXF1cMPg

Architecture

sequenceDiagram

  box Frontend
    participant User (Browser)
    participant ChatGPT
  end

  box Backend
    participant Plugin
    participant Human
  end

  Note over User (Browser), Plugin: HTTP

  User (Browser) ->> ChatGPT: Submits a question
  ChatGPT ->> Plugin: Sends an inquiry <br> about the questoin

  Note over Plugin, Human: OTP distribution protocol
  Plugin ->> Human: Delegates the query <br> to the human
  Human ->> Plugin: Sends an answer <br> about the query <br> as a message

  Plugin ->> ChatGPT: Responds with <br> the answer
  ChatGPT ->> User (Browser): Replies according <br> to the answer
Loading

Author

Kentaro Kuribayashi <kentarok@gmail.com>