API: (no caching) Marketing: Gooey.AI Support Bot


📖 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": "whats new in gooey ai",
  "messages": [
    {
      "role": "user",
      "content": "How do you build an AI Copilot?"
    },
    {
      "role": "assistant",
      "content": "Building an AI Copilot with Gooey.AI is a straightforward process using their no-code interface. Here's a brief overview:\n\n1. **Curate Knowledge Base Documents**: Gather relevant documents from your organization that the AI will use.\n2. **Prepare Synthetic Data**: This helps in training the AI for better responses.\n3. **Craft Your AI Copilot's Personality**: Define how you want your AI to interact with users.\n4. **Advanced Settings and Bulk Evaluation**: Fine-tune settings and evaluate performance.\n5. **Deploy**: You can deploy your AI Copilot to platforms like Slack or Facebook.\n\nFor a detailed guide, please visit: [Gooey.AI Copilot Guide](https://gooey.ai/docs/guides/copilot). If you need further assistance, feel free to reach out to [email protected]."
    },
    {
      "role": "user",
      "content": "how can i deploy on whatsapp"
    },
    {
      "role": "assistant",
      "content": "To deploy your AI Copilot on WhatsApp using Gooey.AI, follow these steps:\n\n1. **Prerequisites**: Ensure you have a verified Facebook business account and a new or spare phone number for the WhatsApp bot.\n\n2. **Integration**:\n   - Go to the Integrations tab in the Copilot workflow.\n   - Click the \u201cWhatsApp\u201d button, which will redirect you to the Facebook Login Page.\n   - Follow the instructions on the Facebook page to connect your account.\n\n3. **Steps**:\n   - Fill in your business information.\n   - Choose your business account or create a new one.\n   - Add and verify the phone number for your WhatsApp bot.\n\nOnce these steps are completed, your bot will be ready to use! You can test it by messaging the registered number. For more detailed guidance, please visit: [Gooey.AI Copilot Guide](https://docs.gooey.ai/guides/copilot/deploy-on-whatsapp). If you encounter any issues, feel free to contact [email protected]."
    }
  ]
};

async function gooeyAPI() {
  const response = await fetch("https://api.gooey.ai/v2/video-bots?example_id=suq2gcxvpg02", {
    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": "whats new in gooey ai",
    "messages": [
        {"role": "user", "content": "How do you build an AI Copilot?"},
        {
            "role": "assistant",
            "content": "Building an AI Copilot with Gooey.AI is a straightforward process using their no-code interface. Here's a brief overview:\n\n1. **Curate Knowledge Base Documents**: Gather relevant documents from your organization that the AI will use.\n2. **Prepare Synthetic Data**: This helps in training the AI for better responses.\n3. **Craft Your AI Copilot's Personality**: Define how you want your AI to interact with users.\n4. **Advanced Settings and Bulk Evaluation**: Fine-tune settings and evaluate performance.\n5. **Deploy**: You can deploy your AI Copilot to platforms like Slack or Facebook.\n\nFor a detailed guide, please visit: [Gooey.AI Copilot Guide](https://gooey.ai/docs/guides/copilot). If you need further assistance, feel free to reach out to [email protected].",
        },
        {"role": "user", "content": "how can i deploy on whatsapp"},
        {
            "role": "assistant",
            "content": "To deploy your AI Copilot on WhatsApp using Gooey.AI, follow these steps:\n\n1. **Prerequisites**: Ensure you have a verified Facebook business account and a new or spare phone number for the WhatsApp bot.\n\n2. **Integration**:\n   - Go to the Integrations tab in the Copilot workflow.\n   - Click the “WhatsApp” button, which will redirect you to the Facebook Login Page.\n   - Follow the instructions on the Facebook page to connect your account.\n\n3. **Steps**:\n   - Fill in your business information.\n   - Choose your business account or create a new one.\n   - Add and verify the phone number for your WhatsApp bot.\n\nOnce these steps are completed, your bot will be ready to use! You can test it by messaging the registered number. For more detailed guidance, please visit: [Gooey.AI Copilot Guide](https://docs.gooey.ai/guides/copilot/deploy-on-whatsapp). If you encounter any issues, feel free to contact [email protected].",
        },
    ],
}

response = requests.post(
    "https://api.gooey.ai/v2/video-bots?example_id=suq2gcxvpg02",
    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?example_id=suq2gcxvpg02' \
  -H "Authorization: bearer $GOOEY_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "input_prompt": "whats new in gooey ai",
  "messages": [
    {
      "role": "user",
      "content": "How do you build an AI Copilot?"
    },
    {
      "role": "assistant",
      "content": "Building an AI Copilot with Gooey.AI is a straightforward process using their no-code interface. Here'"'"'s a brief overview:\n\n1. **Curate Knowledge Base Documents**: Gather relevant documents from your organization that the AI will use.\n2. **Prepare Synthetic Data**: This helps in training the AI for better responses.\n3. **Craft Your AI Copilot'"'"'s Personality**: Define how you want your AI to interact with users.\n4. **Advanced Settings and Bulk Evaluation**: Fine-tune settings and evaluate performance.\n5. **Deploy**: You can deploy your AI Copilot to platforms like Slack or Facebook.\n\nFor a detailed guide, please visit: [Gooey.AI Copilot Guide](https://gooey.ai/docs/guides/copilot). If you need further assistance, feel free to reach out to [email protected]."
    },
    {
      "role": "user",
      "content": "how can i deploy on whatsapp"
    },
    {
      "role": "assistant",
      "content": "To deploy your AI Copilot on WhatsApp using Gooey.AI, follow these steps:\n\n1. **Prerequisites**: Ensure you have a verified Facebook business account and a new or spare phone number for the WhatsApp bot.\n\n2. **Integration**:\n   - Go to the Integrations tab in the Copilot workflow.\n   - Click the \u201cWhatsApp\u201d button, which will redirect you to the Facebook Login Page.\n   - Follow the instructions on the Facebook page to connect your account.\n\n3. **Steps**:\n   - Fill in your business information.\n   - Choose your business account or create a new one.\n   - Add and verify the phone number for your WhatsApp bot.\n\nOnce these steps are completed, your bot will be ready to use! You can test it by messaging the registered number. For more detailed guidance, please visit: [Gooey.AI Copilot Guide](https://docs.gooey.ai/guides/copilot/deploy-on-whatsapp). If you encounter any issues, feel free to contact [email protected]."
    }
  ]
}'

🎁 Example Response

{4 Items
"id"
:
string
"zaho3ah9xq5q"
"url"
:
string
"https://gooey.ai/copilot/"
"created_at"
:
string
"2025-01-17T07:08:29.709857+00:00"
"output"
:
{13 Items
"final_prompt"
:
[6 Items
0
:
{
}2 Items
1
:
{
}2 Items
2
:
{
}2 Items
3
:
{
}2 Items
4
:
{
}2 Items
5
:
{
}2 Items
]
"output_text"
:
[1 Items
0
:
string
"I'm not sure about the latest updates, but you can"
]
"output_audio"
:
NULL
"output_video"
:
NULL
"raw_input_text"
:
string
"whats new in gooey ai"
"raw_tts_text"
:
NULL
"raw_output_text"
:
[1 Items
0
:
string
"I'm not sure about the latest updates, but you can"
]
"references"
:
[3 Items
0
:
{
}4 Items
1
:
{
}4 Items
2
:
{
}4 Items
]
"final_search_query"
:
string
"You asked about what's new in Gooey AI."
"final_keyword_query"
:
NULL
"output_documents"
:
NULL
"reply_buttons"
:
NULL
"finish_reason"
:
[1 Items
0
:
string
"stop"
]
}
}

Please Login to generate the $GOOEY_API_KEY