• Gooey.AI
  • API: Health: Bangladesh Diabetes Assistant


    📖 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": "Based on what factor should I adjust the frequency of HMBG?",
      "messages": [
        {
          "role": "user",
          "content": "What can I do to manage my diabetes, especially if I'm eating rice all the time?"
        },
        {
          "role": "assistant",
          "content": "To manage diabetes effectively, especially with a rice-based diet, consider these tips:\n\n1. **Portion Control**: Limit rice portions to manage carbohydrate intake. \ud83c\udf5a\n2. **Choose Brown Rice**: Opt for brown rice or whole grains, which have a lower glycemic index.\n3. **Balance Meals**: Include vegetables, lean proteins, and healthy fats to balance your meals.\n4. **Monitor Blood Sugar**: Regularly check blood sugar levels and adjust your diet accordingly.\n5. **Stay Active**: Engage in regular physical activity to help control blood sugar levels. \ud83d\udeb6\u200d\u2642\ufe0f\n\nMake sure to consult your healthcare provider for personalized advice.\n\n\u09a1\u09be\u09af\u09bc\u09be\u09ac\u09c7\u099f\u09bf\u09b8 \u09a8\u09bf\u09af\u09bc\u09a8\u09cd\u09a4\u09cd\u09b0\u09a3\u09c7\u09b0 \u099c\u09a8\u09cd\u09af \u098f\u0987 \u09aa\u09b0\u09be\u09ae\u09b0\u09cd\u09b6\u0997\u09c1\u09b2\u09bf \u0985\u09a8\u09c1\u09b8\u09b0\u09a3 \u0995\u09b0\u09c1\u09a8, \u09ac\u09bf\u09b6\u09c7\u09b7 \u0995\u09b0\u09c7 \u09af\u09a6\u09bf \u0986\u09aa\u09a8\u09bf \u09b8\u09ac\u09b8\u09ae\u09af\u09bc \u09ad\u09be\u09a4 \u0996\u09be\u09a8:\n\n\u09e7. **\u09aa\u09b0\u09bf\u09ae\u09be\u09a3 \u09a8\u09bf\u09af\u09bc\u09a8\u09cd\u09a4\u09cd\u09b0\u09a3**: \u0995\u09be\u09b0\u09cd\u09ac\u09cb\u09b9\u09be\u0987\u09a1\u09cd\u09b0\u09c7\u099f \u09a8\u09bf\u09af\u09bc\u09a8\u09cd\u09a4\u09cd\u09b0\u09a3 \u0995\u09b0\u09a4\u09c7 \u09ad\u09be\u09a4\u09c7\u09b0 \u09aa\u09b0\u09bf\u09ae\u09be\u09a3 \u09b8\u09c0\u09ae\u09bf\u09a4 \u09b0\u09be\u0996\u09c1\u09a8\u0964\n\u09e8. **\u09ac\u09be\u09a6\u09be\u09ae\u09bf \u099a\u09be\u09b2 \u09ac\u09c7\u099b\u09c7 \u09a8\u09bf\u09a8**: \u09ac\u09be\u09a6\u09be\u09ae\u09bf \u099a\u09be\u09b2 \u09ac\u09be \u09b8\u09ae\u09cd\u09aa\u09c2\u09b0\u09cd\u09a3 \u09b6\u09b8\u09cd\u09af \u09ac\u09c7\u099b\u09c7 \u09a8\u09bf\u09a8, \u09af\u09c7\u0997\u09c1\u09b2\u09bf\u09b0 \u0997\u09cd\u09b2\u09be\u0987\u09b8\u09c7\u09ae\u09bf\u0995 \u09b8\u09c2\u099a\u0995 \u0995\u09ae\u0964\n\u09e9. **\u0996\u09be\u09ac\u09be\u09b0 \u09ad\u09be\u09b0\u09b8\u09be\u09ae\u09cd\u09af**: \u09b8\u09ac\u099c\u09bf, \u099a\u09b0\u09cd\u09ac\u09bf\u09b9\u09c0\u09a8 \u09aa\u09cd\u09b0\u09cb\u099f\u09bf\u09a8 \u098f\u09ac\u0982 \u09b8\u09cd\u09ac\u09be\u09b8\u09cd\u09a5\u09cd\u09af\u0995\u09b0 \u09ab\u09cd\u09af\u09be\u099f \u0985\u09a8\u09cd\u09a4\u09b0\u09cd\u09ad\u09c1\u0995\u09cd\u09a4 \u0995\u09b0\u09c1\u09a8\u0964\n\u09ea. **\u09b0\u0995\u09cd\u09a4\u09c7 \u09b6\u09b0\u09cd\u0995\u09b0\u09be \u09a8\u09bf\u09af\u09bc\u09a8\u09cd\u09a4\u09cd\u09b0\u09a3**: \u09a8\u09bf\u09af\u09bc\u09ae\u09bf\u09a4 \u09b0\u0995\u09cd\u09a4\u09c7 \u09b6\u09b0\u09cd\u0995\u09b0\u09be \u09aa\u09b0\u09c0\u0995\u09cd\u09b7\u09be \u0995\u09b0\u09c1\u09a8 \u098f\u09ac\u0982 \u0986\u09aa\u09a8\u09be\u09b0 \u0996\u09be\u09a6\u09cd\u09af \u0985\u09a8\u09c1\u09af\u09be\u09af\u09bc\u09c0 \u09b8\u09be\u09ae\u099e\u09cd\u099c\u09b8\u09cd\u09af \u0995\u09b0\u09c1\u09a8\u0964\n\u09eb. **\u09b8\u0995\u09cd\u09b0\u09bf\u09af\u09bc \u09a5\u09be\u0995\u09c1\u09a8**: \u09a8\u09bf\u09af\u09bc\u09ae\u09bf\u09a4 \u09b6\u09be\u09b0\u09c0\u09b0\u09bf\u0995 \u0995\u09be\u09b0\u09cd\u09af\u0995\u09b2\u09be\u09aa\u09c7 \u0985\u0982\u09b6\u0997\u09cd\u09b0\u09b9\u09a3 \u0995\u09b0\u09c1\u09a8\u0964 \n\n\u09ac\u09cd\u09af\u0995\u09cd\u09a4\u09bf\u0997\u09a4 \u09aa\u09b0\u09be\u09ae\u09b0\u09cd\u09b6\u09c7\u09b0 \u099c\u09a8\u09cd\u09af \u0986\u09aa\u09a8\u09be\u09b0 \u09b8\u09cd\u09ac\u09be\u09b8\u09cd\u09a5\u09cd\u09af\u09b8\u09c7\u09ac\u09be \u09aa\u09cd\u09b0\u09a6\u09be\u09a8\u0995\u09be\u09b0\u09c0\u09b0 \u09b8\u09be\u09a5\u09c7 \u09aa\u09b0\u09be\u09ae\u09b0\u09cd\u09b6 \u0995\u09b0\u09c1\u09a8\u0964"
        }
      ]
    };
    
    async function gooeyAPI() {
      const response = await fetch("https://api.gooey.ai/v2/video-bots?example_id=u6r9mu5b116e", {
        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": "Based on what factor should I adjust the frequency of HMBG?",
        "messages": [
            {
                "role": "user",
                "content": "What can I do to manage my diabetes, especially if I'm eating rice all the time?",
            },
            {
                "role": "assistant",
                "content": "To manage diabetes effectively, especially with a rice-based diet, consider these tips:\n\n1. **Portion Control**: Limit rice portions to manage carbohydrate intake. 🍚\n2. **Choose Brown Rice**: Opt for brown rice or whole grains, which have a lower glycemic index.\n3. **Balance Meals**: Include vegetables, lean proteins, and healthy fats to balance your meals.\n4. **Monitor Blood Sugar**: Regularly check blood sugar levels and adjust your diet accordingly.\n5. **Stay Active**: Engage in regular physical activity to help control blood sugar levels. 🚶\u200d♂️\n\nMake sure to consult your healthcare provider for personalized advice.\n\nডায়াবেটিস নিয়ন্ত্রণের জন্য এই পরামর্শগুলি অনুসরণ করুন, বিশেষ করে যদি আপনি সবসময় ভাত খান:\n\n১. **পরিমাণ নিয়ন্ত্রণ**: কার্বোহাইড্রেট নিয়ন্ত্রণ করতে ভাতের পরিমাণ সীমিত রাখুন।\n২. **বাদামি চাল বেছে নিন**: বাদামি চাল বা সম্পূর্ণ শস্য বেছে নিন, যেগুলির গ্লাইসেমিক সূচক কম।\n৩. **খাবার ভারসাম্য**: সবজি, চর্বিহীন প্রোটিন এবং স্বাস্থ্যকর ফ্যাট অন্তর্ভুক্ত করুন।\n৪. **রক্তে শর্করা নিয়ন্ত্রণ**: নিয়মিত রক্তে শর্করা পরীক্ষা করুন এবং আপনার খাদ্য অনুযায়ী সামঞ্জস্য করুন।\n৫. **সক্রিয় থাকুন**: নিয়মিত শারীরিক কার্যকলাপে অংশগ্রহণ করুন। \n\nব্যক্তিগত পরামর্শের জন্য আপনার স্বাস্থ্যসেবা প্রদানকারীর সাথে পরামর্শ করুন।",
            },
        ],
    }
    
    response = requests.post(
        "https://api.gooey.ai/v2/video-bots?example_id=u6r9mu5b116e",
        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=u6r9mu5b116e' \
      -H "Authorization: bearer $GOOEY_API_KEY" \
      -H 'Content-Type: application/json' \
      -d '{
      "input_prompt": "Based on what factor should I adjust the frequency of HMBG?",
      "messages": [
        {
          "role": "user",
          "content": "What can I do to manage my diabetes, especially if I'"'"'m eating rice all the time?"
        },
        {
          "role": "assistant",
          "content": "To manage diabetes effectively, especially with a rice-based diet, consider these tips:\n\n1. **Portion Control**: Limit rice portions to manage carbohydrate intake. \ud83c\udf5a\n2. **Choose Brown Rice**: Opt for brown rice or whole grains, which have a lower glycemic index.\n3. **Balance Meals**: Include vegetables, lean proteins, and healthy fats to balance your meals.\n4. **Monitor Blood Sugar**: Regularly check blood sugar levels and adjust your diet accordingly.\n5. **Stay Active**: Engage in regular physical activity to help control blood sugar levels. \ud83d\udeb6\u200d\u2642\ufe0f\n\nMake sure to consult your healthcare provider for personalized advice.\n\n\u09a1\u09be\u09af\u09bc\u09be\u09ac\u09c7\u099f\u09bf\u09b8 \u09a8\u09bf\u09af\u09bc\u09a8\u09cd\u09a4\u09cd\u09b0\u09a3\u09c7\u09b0 \u099c\u09a8\u09cd\u09af \u098f\u0987 \u09aa\u09b0\u09be\u09ae\u09b0\u09cd\u09b6\u0997\u09c1\u09b2\u09bf \u0985\u09a8\u09c1\u09b8\u09b0\u09a3 \u0995\u09b0\u09c1\u09a8, \u09ac\u09bf\u09b6\u09c7\u09b7 \u0995\u09b0\u09c7 \u09af\u09a6\u09bf \u0986\u09aa\u09a8\u09bf \u09b8\u09ac\u09b8\u09ae\u09af\u09bc \u09ad\u09be\u09a4 \u0996\u09be\u09a8:\n\n\u09e7. **\u09aa\u09b0\u09bf\u09ae\u09be\u09a3 \u09a8\u09bf\u09af\u09bc\u09a8\u09cd\u09a4\u09cd\u09b0\u09a3**: \u0995\u09be\u09b0\u09cd\u09ac\u09cb\u09b9\u09be\u0987\u09a1\u09cd\u09b0\u09c7\u099f \u09a8\u09bf\u09af\u09bc\u09a8\u09cd\u09a4\u09cd\u09b0\u09a3 \u0995\u09b0\u09a4\u09c7 \u09ad\u09be\u09a4\u09c7\u09b0 \u09aa\u09b0\u09bf\u09ae\u09be\u09a3 \u09b8\u09c0\u09ae\u09bf\u09a4 \u09b0\u09be\u0996\u09c1\u09a8\u0964\n\u09e8. **\u09ac\u09be\u09a6\u09be\u09ae\u09bf \u099a\u09be\u09b2 \u09ac\u09c7\u099b\u09c7 \u09a8\u09bf\u09a8**: \u09ac\u09be\u09a6\u09be\u09ae\u09bf \u099a\u09be\u09b2 \u09ac\u09be \u09b8\u09ae\u09cd\u09aa\u09c2\u09b0\u09cd\u09a3 \u09b6\u09b8\u09cd\u09af \u09ac\u09c7\u099b\u09c7 \u09a8\u09bf\u09a8, \u09af\u09c7\u0997\u09c1\u09b2\u09bf\u09b0 \u0997\u09cd\u09b2\u09be\u0987\u09b8\u09c7\u09ae\u09bf\u0995 \u09b8\u09c2\u099a\u0995 \u0995\u09ae\u0964\n\u09e9. **\u0996\u09be\u09ac\u09be\u09b0 \u09ad\u09be\u09b0\u09b8\u09be\u09ae\u09cd\u09af**: \u09b8\u09ac\u099c\u09bf, \u099a\u09b0\u09cd\u09ac\u09bf\u09b9\u09c0\u09a8 \u09aa\u09cd\u09b0\u09cb\u099f\u09bf\u09a8 \u098f\u09ac\u0982 \u09b8\u09cd\u09ac\u09be\u09b8\u09cd\u09a5\u09cd\u09af\u0995\u09b0 \u09ab\u09cd\u09af\u09be\u099f \u0985\u09a8\u09cd\u09a4\u09b0\u09cd\u09ad\u09c1\u0995\u09cd\u09a4 \u0995\u09b0\u09c1\u09a8\u0964\n\u09ea. **\u09b0\u0995\u09cd\u09a4\u09c7 \u09b6\u09b0\u09cd\u0995\u09b0\u09be \u09a8\u09bf\u09af\u09bc\u09a8\u09cd\u09a4\u09cd\u09b0\u09a3**: \u09a8\u09bf\u09af\u09bc\u09ae\u09bf\u09a4 \u09b0\u0995\u09cd\u09a4\u09c7 \u09b6\u09b0\u09cd\u0995\u09b0\u09be \u09aa\u09b0\u09c0\u0995\u09cd\u09b7\u09be \u0995\u09b0\u09c1\u09a8 \u098f\u09ac\u0982 \u0986\u09aa\u09a8\u09be\u09b0 \u0996\u09be\u09a6\u09cd\u09af \u0985\u09a8\u09c1\u09af\u09be\u09af\u09bc\u09c0 \u09b8\u09be\u09ae\u099e\u09cd\u099c\u09b8\u09cd\u09af \u0995\u09b0\u09c1\u09a8\u0964\n\u09eb. **\u09b8\u0995\u09cd\u09b0\u09bf\u09af\u09bc \u09a5\u09be\u0995\u09c1\u09a8**: \u09a8\u09bf\u09af\u09bc\u09ae\u09bf\u09a4 \u09b6\u09be\u09b0\u09c0\u09b0\u09bf\u0995 \u0995\u09be\u09b0\u09cd\u09af\u0995\u09b2\u09be\u09aa\u09c7 \u0985\u0982\u09b6\u0997\u09cd\u09b0\u09b9\u09a3 \u0995\u09b0\u09c1\u09a8\u0964 \n\n\u09ac\u09cd\u09af\u0995\u09cd\u09a4\u09bf\u0997\u09a4 \u09aa\u09b0\u09be\u09ae\u09b0\u09cd\u09b6\u09c7\u09b0 \u099c\u09a8\u09cd\u09af \u0986\u09aa\u09a8\u09be\u09b0 \u09b8\u09cd\u09ac\u09be\u09b8\u09cd\u09a5\u09cd\u09af\u09b8\u09c7\u09ac\u09be \u09aa\u09cd\u09b0\u09a6\u09be\u09a8\u0995\u09be\u09b0\u09c0\u09b0 \u09b8\u09be\u09a5\u09c7 \u09aa\u09b0\u09be\u09ae\u09b0\u09cd\u09b6 \u0995\u09b0\u09c1\u09a8\u0964"
        }
      ]
    }'
    

    🎁 Example Response

    {4 Items
    "id"
    :
    string
    "4b8f0mrm25q2"
    "url"
    :
    string
    "https://gooey.ai/copilot/"
    "created_at"
    :
    string
    "2025-01-17T04:51:54.165295+00:00"
    "output"
    :
    {13 Items
    "final_prompt"
    :
    [4 Items
    0
    :
    {
    }2 Items
    1
    :
    {
    }2 Items
    2
    :
    {
    }2 Items
    3
    :
    {
    }2 Items
    ]
    "output_text"
    :
    [1 Items
    0
    :
    string
    "হোম মনিটরিং ব্লাড গ্লুকোজ (HMBG) এর ফ্রিকোয়েন্সি "
    ]
    "output_audio"
    :
    [1 Items
    0
    :
    string
    "https://storage.googleapis.com/dara-c1b52.appspot."
    ]
    "output_video"
    :
    NULL
    "raw_input_text"
    :
    string
    "Based on what factor should I adjust the frequency"
    "raw_tts_text"
    :
    NULL
    "raw_output_text"
    :
    [1 Items
    0
    :
    string
    "হোম মনিটরিং ব্লাড গ্লুকোজ (HMBG) এর ফ্রিকোয়েন্সি "
    ]
    "references"
    :
    [4 Items
    0
    :
    {
    }4 Items
    1
    :
    {
    }4 Items
    2
    :
    {
    }4 Items
    3
    :
    {
    }4 Items
    ]
    "final_search_query"
    :
    string
    "You should adjust the frequency of HMBG based on y"
    "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