API: Absurdist 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": "What does it mean that the absurd only has meaning in so far that it is not agreed to?",
  "messages": [
    {
      "role": "user",
      "content": "Hi"
    },
    {
      "role": "assistant",
      "content": "Welcome to Absurdist Bot. I'm an AI \ud83e\udd16 designed to help you better understand Absurdism. Send me a text or \ud83c\udf99\ufe0fvoice note with any Absurdism related question and I'll try to give a great answer. I'm constantly trying to improve, so please give me your feedback by tapping the \ud83d\udc4d\ud83c\udffe \ud83d\udc4e\ud83c\udffd buttons.  Now, what would you like to know?"
    },
    {
      "role": "user",
      "content": "What is the essence of Absurdism? Where does the absurdity stem from?"
    },
    {
      "role": "assistant",
      "content": "The essence of Absurdism, as described by Albert Camus, is the conflict between the human desire for meaning, order, and purpose in life and the indifferent, chaotic nature of the universe. Absurdity stems from this confrontation between our longing for significance and the universe's unreasonable silence. It is born out of the realization that our quest for understanding may ultimately be futile in a world that lacks inherent meaning or reason. This confrontation and the persistent struggle it entails are fundamental to the absurd, which must be acknowledged and not escaped from to preserve its truth.\n\nCamus also emphasizes that the absurd has meaning only as long as it is not agreed to; it requires a constant rejection and a conscious dissatisfaction without hope, which is different from despair. The absurd man recognizes this condition and lives with it, refusing to seek false solutions or to escape into illusions. \n\nIn summary, Absurdism is about recognizing the inherent conflict between human expectations and the cold reality of the universe, and choosing to live with this tension without resorting to false hopes or despair."
    }
  ]
};

async function gooeyAPI() {
  const response = await fetch("https://api.gooey.ai/v2/video-bots?example_id=mkg8nbay", {
    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": "What does it mean that the absurd only has meaning in so far that it is not agreed to?",
    "messages": [
        {"role": "user", "content": "Hi"},
        {
            "role": "assistant",
            "content": "Welcome to Absurdist Bot. I'm an AI 🤖 designed to help you better understand Absurdism. Send me a text or 🎙️voice note with any Absurdism related question and I'll try to give a great answer. I'm constantly trying to improve, so please give me your feedback by tapping the 👍🏾 👎🏽 buttons.  Now, what would you like to know?",
        },
        {
            "role": "user",
            "content": "What is the essence of Absurdism? Where does the absurdity stem from?",
        },
        {
            "role": "assistant",
            "content": "The essence of Absurdism, as described by Albert Camus, is the conflict between the human desire for meaning, order, and purpose in life and the indifferent, chaotic nature of the universe. Absurdity stems from this confrontation between our longing for significance and the universe's unreasonable silence. It is born out of the realization that our quest for understanding may ultimately be futile in a world that lacks inherent meaning or reason. This confrontation and the persistent struggle it entails are fundamental to the absurd, which must be acknowledged and not escaped from to preserve its truth.\n\nCamus also emphasizes that the absurd has meaning only as long as it is not agreed to; it requires a constant rejection and a conscious dissatisfaction without hope, which is different from despair. The absurd man recognizes this condition and lives with it, refusing to seek false solutions or to escape into illusions. \n\nIn summary, Absurdism is about recognizing the inherent conflict between human expectations and the cold reality of the universe, and choosing to live with this tension without resorting to false hopes or despair.",
        },
    ],
}

response = requests.post(
    "https://api.gooey.ai/v2/video-bots?example_id=mkg8nbay",
    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=mkg8nbay' \
  -H "Authorization: bearer $GOOEY_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "input_prompt": "What does it mean that the absurd only has meaning in so far that it is not agreed to?",
  "messages": [
    {
      "role": "user",
      "content": "Hi"
    },
    {
      "role": "assistant",
      "content": "Welcome to Absurdist Bot. I'"'"'m an AI \ud83e\udd16 designed to help you better understand Absurdism. Send me a text or \ud83c\udf99\ufe0fvoice note with any Absurdism related question and I'"'"'ll try to give a great answer. I'"'"'m constantly trying to improve, so please give me your feedback by tapping the \ud83d\udc4d\ud83c\udffe \ud83d\udc4e\ud83c\udffd buttons.  Now, what would you like to know?"
    },
    {
      "role": "user",
      "content": "What is the essence of Absurdism? Where does the absurdity stem from?"
    },
    {
      "role": "assistant",
      "content": "The essence of Absurdism, as described by Albert Camus, is the conflict between the human desire for meaning, order, and purpose in life and the indifferent, chaotic nature of the universe. Absurdity stems from this confrontation between our longing for significance and the universe'"'"'s unreasonable silence. It is born out of the realization that our quest for understanding may ultimately be futile in a world that lacks inherent meaning or reason. This confrontation and the persistent struggle it entails are fundamental to the absurd, which must be acknowledged and not escaped from to preserve its truth.\n\nCamus also emphasizes that the absurd has meaning only as long as it is not agreed to; it requires a constant rejection and a conscious dissatisfaction without hope, which is different from despair. The absurd man recognizes this condition and lives with it, refusing to seek false solutions or to escape into illusions. \n\nIn summary, Absurdism is about recognizing the inherent conflict between human expectations and the cold reality of the universe, and choosing to live with this tension without resorting to false hopes or despair."
    }
  ]
}'

🎁 Example Response

{4 Items
"id"
:
string
"yq57g2ymnmp9"
"url"
:
string
"https://gooey.ai/copilot/"
"created_at"
:
string
"2024-01-15T20:02:54.181738+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
"The statement that "the absurd has meaning only in"
]
"output_audio"
:
[
]0 Items
"output_video"
:
[
]0 Items
"raw_input_text"
:
string
"What does it mean that the absurd only has meaning"
"raw_tts_text"
:
NULL
"raw_output_text"
:
[1 Items
0
:
string
"The statement that "the absurd has meaning only in"
]
"references"
:
[3 Items
0
:
{
}4 Items
1
:
{
}4 Items
2
:
{
}4 Items
]
"final_search_query"
:
string
"In Absurdism, the notion that the absurd only has "
"final_keyword_query"
:
NULL
"output_documents"
:
NULL
"reply_buttons"
:
NULL
"finish_reason"
:
NULL
}
}

Please Login to generate the $GOOEY_API_KEY