Copilot for the Enterprise

Welcome to the most advanced AI bot available, combining your choice of GPT4, PaLM2 or LLaAM2, a knowledge base build from any document or URL, editable synthetic data pipelines, feedback, conversation analysis and more. In this example, we present Farmer Chat: https://www.help.gooey.ai/farmerchat, which was demo'd at the UN Science Panel in April 2023. Aimed at Indian farmers and Extension Agents, this bot uses a collection of documents and transcripts of 100s of videos representing best practices from the Indian Ministry of Agriculture and Digital Green's video transcripts & FAQs to answer common questions from Indian farmers. We load these documents + transcripts into a vector database. With each question, we search the vector DB and then add the results to a GPT script below to create an answer to the farmer's questions. Chat with Farmer.CHAT on WhatsApp here: http://wa.me/+12602310218. More info and technical walkthroughs can be found here too: https://www.help.gooey.ai/farmerchat

πŸ“– To learn more, take a look at our complete API

πŸ“€ Example Request

  1. Generate an api key belowπŸ‘‡

  2. Install node-fetch & add the GOOEY_API_KEY to your environment variables.
    Never store the api key in your code and don't use direcly in the browser.

$ npm install node-fetch
$ export GOOEY_API_KEY=sk-xxxx
  1. Use this sample code to call the API.
    If you encounter any issues, write to us at [email protected] and make sure to include the full code snippet and the error message.
import fetch from 'node-fetch';

const payload = {
  "input_prompt": "Hi"
};

async function gooeyAPI() {
  const response = await fetch("https://api.gooey.ai/v2/video-bots/", {
    method: "POST",
    headers: {
      "Authorization": "Bearer " + process.env["GOOEY_API_KEY"],
      "Content-Type": "application/json",
    },
    body: JSON.stringify(payload),
  });

  if (!response.ok) {
    throw new Error(response.status);
  }

  const result = await response.json();
  console.log(response.status, result);
}

gooeyAPI();
  1. Generate an api key belowπŸ‘‡

  2. Install requests & add the GOOEY_API_KEY to your environment variables.
    Never store the api key in your code.

$ python3 -m pip install requests
$ export GOOEY_API_KEY=sk-xxxx
  1. Use this sample code to call the API.
    If you encounter any issues, write to us at [email protected] and make sure to include the full code snippet and the error message.
import os
import requests

payload = {"input_prompt": "Hi"}

response = requests.post(
    "https://api.gooey.ai/v2/video-bots/",
    headers={
        "Authorization": "Bearer " + os.environ["GOOEY_API_KEY"],
    },
    json=payload,
)
assert response.ok, response.content

result = response.json()
print(response.status_code, result)
  1. Generate an api key belowπŸ‘‡

  2. Install curl & add the GOOEY_API_KEY to your environment variables.
    Never store the api key in your code.

export GOOEY_API_KEY=sk-xxxx
  1. Run the following curl command in your terminal.
    If you encounter any issues, write to us at [email protected] and make sure to include the full curl command and the error message.
curl https://api.gooey.ai/v2/video-bots/ \
  -H "Authorization: Bearer $GOOEY_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "input_prompt": "Hi"
}'

🎁 Example Response

{4 Items
"id"
:
string
"cgqjgwan"
"url"
:
string
"https://gooey.ai/copilot/"
"created_at"
:
string
"2023-06-12T06:53:25.460810+00:00"
"output"
:
{4 Items
"final_prompt"
:
string
"<|im_start|>system You are Farmer.CHAT - an intell…"
"output_text"
:
[1 Items
0
:
string
"Welcome to Farmer.CHAT. I'm an AI πŸ€– designed to h…"
]
"output_audio"
:
[1 Items
0
:
string
"https://storage.googleapis.com/dara-c1b52.appspot.…"
]
"output_video"
:
[
]0 Items
}
}

Please Login to generate the $GOOEY_API_KEY