• Gooey.AI
  • API: Trades: HVAC Master Technician Copilot - old


    📖 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": "the room's area is 240' by 11' high and it's a living room",
      "messages": [
        {
          "role": "user",
          "content": "what are the electrical requirements of the 4A7A3030G"
        },
        {
          "role": "assistant",
          "content": "The electrical requirements for the model 4A7A3030N1000A1 are as follows:\n\n- Power Supply: 208/230 volts, single-phase, 60 Hz\n- Minimum Circuit Ampacity (MCA): 17.0 amps\n- Maximum Fuse Size: 25 amps\n\nThese details should help you ensure the unit is properly connected to the electrical system. If you have a different model number, please double-check the specifics as they can vary slightly between models."
        },
        {
          "role": "user",
          "content": "how do i test the pressure of the refrigerant"
        },
        {
          "role": "assistant",
          "content": "To test the pressure of the refrigerant, follow these steps:\n\n1. **Connect Gauges**: Attach your pressure gauges to the service ports on the unit. Make sure they are securely connected.\n\n2. **Pressurize the System**: If you're checking for leaks, you can pressurize the refrigerant lines and evaporator coil to 150 PSIG using dry nitrogen.\n\n3. **Check Pressure**: Compare the pressure readings from your gauges with the values on the charging chart for your specific unit. This will help you determine if the system is properly charged.\n\n4. **Adjust Refrigerant**: If the liquid gauge pressure is lower than the chart value, add refrigerant until it matches. If it's higher, you may need to recover some refrigerant.\n\n5. **Stabilize and Recheck**: Allow the system to stabilize for about 20 minutes after any adjustments, then recheck the pressures to ensure they match the chart values.\n\n6. **Remove Gauges**: Once everything is set, remove the gauges and replace the service port caps to prevent leaks.\n\nRemember to always follow safety protocols when handling refrigerants! \ud83d\udee0\ufe0f\ud83c\udf21\ufe0f"
        },
        {
          "role": "user",
          "content": "how do i measure the return temperature of the unit"
        },
        {
          "role": "assistant",
          "content": "To measure the return temperature of the unit, follow these steps:\n\n1. **Locate the Return Duct**: Find the return air duct where the air is being pulled into the system.\n\n2. **Use a Thermometer**: Insert a digital thermometer or a temperature probe into the return air duct. Make sure it's positioned in the airflow but not touching any metal surfaces to get an accurate reading.\n\n3. **Record the Temperature**: Allow the thermometer to stabilize for a few minutes and then record the temperature reading.\n\nThis measurement will help you understand how much heat is being removed from the air as it passes through the system. If you have further questions, feel free to ask! \ud83c\udf21\ufe0f\ud83d\udccf"
        },
        {
          "role": "user",
          "content": "how do you tell the difference between the suction pressure and line pressure?"
        },
        {
          "role": "assistant",
          "content": "The suction pressure and liquid line pressure are two different measurements in an HVAC system:\n\n1. **Suction Pressure**: This is the pressure of the refrigerant in the suction line, which is the line that carries refrigerant gas back to the compressor from the evaporator coil. It's usually measured at the service valve on the larger line (suction line) using a pressure gauge.\n\n2. **Liquid Line Pressure**: This is the pressure of the refrigerant in the liquid line, which carries refrigerant from the condenser to the expansion valve or metering device. It's measured at the service valve on the smaller line (liquid line) using a pressure gauge.\n\nTo differentiate between them, you can look at the size of the lines and where they are located in the system. The suction line is typically larger and cooler to the touch, while the liquid line is smaller and warmer. When measuring, make sure your gauges are connected to the correct service ports for accurate readings. \ud83d\udccf\ud83d\udd27"
        },
        {
          "role": "user",
          "content": "what should be the the difference between the suction pressure and line pressure?"
        },
        {
          "role": "assistant",
          "content": "The difference between suction pressure and liquid line pressure can vary depending on the specific system and operating conditions. Generally, the suction pressure is lower because it measures the pressure of the refrigerant gas returning to the compressor, while the liquid line pressure is higher as it measures the pressure of the refrigerant in the liquid state leaving the condenser.\n\nFor example, if you have a system with a liquid line pressure of around 327 PSI (as indicated in the search results for a specific subcooling value and temperature), the suction pressure will typically be much lower, often in the range of 60-80 PSI for many systems. However, these values can vary based on factors like ambient temperature, system load, and refrigerant type.\n\nIt's important to refer to the manufacturer's specifications and charts for your specific unit to determine the expected pressures under normal operating conditions. \ud83d\udcc8\ud83d\udd27"
        },
        {
          "role": "user",
          "content": "how do a calculate a room's cfm?"
        },
        {
          "role": "assistant",
          "content": "To calculate a room's CFM (Cubic Feet per Minute), you need to know the room's area, height, and type. Here's a simple formula:\n\n1. **Determine the Room Volume**: Multiply the room's area (in square feet) by its height (in feet) to get the volume in cubic feet.\n\n2. **Use Air Changes Per Hour (ACH)**: Depending on the room type, you'll need a certain number of air changes per hour. For example, a living room might need 6 ACH, while a kitchen might need 15 ACH.\n\n3. **Calculate CFM**: Use the formula:\n   \\[\n   \\text{CFM} = \\frac{\\text{Room Volume} \\times \\text{ACH}}{60}\n   \\]\n   This formula divides the total air volume needed per hour by 60 to convert it to minutes.\n\nIf you provide me with the room's area, height, and type, I can calculate the CFM for you! \ud83c\udfe0\ud83d\udccf"
        }
      ]
    };
    
    async function gooeyAPI() {
      const response = await fetch("https://api.gooey.ai/v2/video-bots?example_id=9i8kc35md1z4", {
        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": "the room's area is 240' by 11' high and it's a living room",
        "messages": [
            {
                "role": "user",
                "content": "what are the electrical requirements of the 4A7A3030G",
            },
            {
                "role": "assistant",
                "content": "The electrical requirements for the model 4A7A3030N1000A1 are as follows:\n\n- Power Supply: 208/230 volts, single-phase, 60 Hz\n- Minimum Circuit Ampacity (MCA): 17.0 amps\n- Maximum Fuse Size: 25 amps\n\nThese details should help you ensure the unit is properly connected to the electrical system. If you have a different model number, please double-check the specifics as they can vary slightly between models.",
            },
            {"role": "user", "content": "how do i test the pressure of the refrigerant"},
            {
                "role": "assistant",
                "content": "To test the pressure of the refrigerant, follow these steps:\n\n1. **Connect Gauges**: Attach your pressure gauges to the service ports on the unit. Make sure they are securely connected.\n\n2. **Pressurize the System**: If you're checking for leaks, you can pressurize the refrigerant lines and evaporator coil to 150 PSIG using dry nitrogen.\n\n3. **Check Pressure**: Compare the pressure readings from your gauges with the values on the charging chart for your specific unit. This will help you determine if the system is properly charged.\n\n4. **Adjust Refrigerant**: If the liquid gauge pressure is lower than the chart value, add refrigerant until it matches. If it's higher, you may need to recover some refrigerant.\n\n5. **Stabilize and Recheck**: Allow the system to stabilize for about 20 minutes after any adjustments, then recheck the pressures to ensure they match the chart values.\n\n6. **Remove Gauges**: Once everything is set, remove the gauges and replace the service port caps to prevent leaks.\n\nRemember to always follow safety protocols when handling refrigerants! 🛠️🌡️",
            },
            {
                "role": "user",
                "content": "how do i measure the return temperature of the unit",
            },
            {
                "role": "assistant",
                "content": "To measure the return temperature of the unit, follow these steps:\n\n1. **Locate the Return Duct**: Find the return air duct where the air is being pulled into the system.\n\n2. **Use a Thermometer**: Insert a digital thermometer or a temperature probe into the return air duct. Make sure it's positioned in the airflow but not touching any metal surfaces to get an accurate reading.\n\n3. **Record the Temperature**: Allow the thermometer to stabilize for a few minutes and then record the temperature reading.\n\nThis measurement will help you understand how much heat is being removed from the air as it passes through the system. If you have further questions, feel free to ask! 🌡️📏",
            },
            {
                "role": "user",
                "content": "how do you tell the difference between the suction pressure and line pressure?",
            },
            {
                "role": "assistant",
                "content": "The suction pressure and liquid line pressure are two different measurements in an HVAC system:\n\n1. **Suction Pressure**: This is the pressure of the refrigerant in the suction line, which is the line that carries refrigerant gas back to the compressor from the evaporator coil. It's usually measured at the service valve on the larger line (suction line) using a pressure gauge.\n\n2. **Liquid Line Pressure**: This is the pressure of the refrigerant in the liquid line, which carries refrigerant from the condenser to the expansion valve or metering device. It's measured at the service valve on the smaller line (liquid line) using a pressure gauge.\n\nTo differentiate between them, you can look at the size of the lines and where they are located in the system. The suction line is typically larger and cooler to the touch, while the liquid line is smaller and warmer. When measuring, make sure your gauges are connected to the correct service ports for accurate readings. 📏🔧",
            },
            {
                "role": "user",
                "content": "what should be the the difference between the suction pressure and line pressure?",
            },
            {
                "role": "assistant",
                "content": "The difference between suction pressure and liquid line pressure can vary depending on the specific system and operating conditions. Generally, the suction pressure is lower because it measures the pressure of the refrigerant gas returning to the compressor, while the liquid line pressure is higher as it measures the pressure of the refrigerant in the liquid state leaving the condenser.\n\nFor example, if you have a system with a liquid line pressure of around 327 PSI (as indicated in the search results for a specific subcooling value and temperature), the suction pressure will typically be much lower, often in the range of 60-80 PSI for many systems. However, these values can vary based on factors like ambient temperature, system load, and refrigerant type.\n\nIt's important to refer to the manufacturer's specifications and charts for your specific unit to determine the expected pressures under normal operating conditions. 📈🔧",
            },
            {"role": "user", "content": "how do a calculate a room's cfm?"},
            {
                "role": "assistant",
                "content": "To calculate a room's CFM (Cubic Feet per Minute), you need to know the room's area, height, and type. Here's a simple formula:\n\n1. **Determine the Room Volume**: Multiply the room's area (in square feet) by its height (in feet) to get the volume in cubic feet.\n\n2. **Use Air Changes Per Hour (ACH)**: Depending on the room type, you'll need a certain number of air changes per hour. For example, a living room might need 6 ACH, while a kitchen might need 15 ACH.\n\n3. **Calculate CFM**: Use the formula:\n   \\[\n   \\text{CFM} = \\frac{\\text{Room Volume} \\times \\text{ACH}}{60}\n   \\]\n   This formula divides the total air volume needed per hour by 60 to convert it to minutes.\n\nIf you provide me with the room's area, height, and type, I can calculate the CFM for you! 🏠📏",
            },
        ],
    }
    
    response = requests.post(
        "https://api.gooey.ai/v2/video-bots?example_id=9i8kc35md1z4",
        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=9i8kc35md1z4' \
      -H "Authorization: bearer $GOOEY_API_KEY" \
      -H 'Content-Type: application/json' \
      -d '{
      "input_prompt": "the room'"'"'s area is 240'"'"' by 11'"'"' high and it'"'"'s a living room",
      "messages": [
        {
          "role": "user",
          "content": "what are the electrical requirements of the 4A7A3030G"
        },
        {
          "role": "assistant",
          "content": "The electrical requirements for the model 4A7A3030N1000A1 are as follows:\n\n- Power Supply: 208/230 volts, single-phase, 60 Hz\n- Minimum Circuit Ampacity (MCA): 17.0 amps\n- Maximum Fuse Size: 25 amps\n\nThese details should help you ensure the unit is properly connected to the electrical system. If you have a different model number, please double-check the specifics as they can vary slightly between models."
        },
        {
          "role": "user",
          "content": "how do i test the pressure of the refrigerant"
        },
        {
          "role": "assistant",
          "content": "To test the pressure of the refrigerant, follow these steps:\n\n1. **Connect Gauges**: Attach your pressure gauges to the service ports on the unit. Make sure they are securely connected.\n\n2. **Pressurize the System**: If you'"'"'re checking for leaks, you can pressurize the refrigerant lines and evaporator coil to 150 PSIG using dry nitrogen.\n\n3. **Check Pressure**: Compare the pressure readings from your gauges with the values on the charging chart for your specific unit. This will help you determine if the system is properly charged.\n\n4. **Adjust Refrigerant**: If the liquid gauge pressure is lower than the chart value, add refrigerant until it matches. If it'"'"'s higher, you may need to recover some refrigerant.\n\n5. **Stabilize and Recheck**: Allow the system to stabilize for about 20 minutes after any adjustments, then recheck the pressures to ensure they match the chart values.\n\n6. **Remove Gauges**: Once everything is set, remove the gauges and replace the service port caps to prevent leaks.\n\nRemember to always follow safety protocols when handling refrigerants! \ud83d\udee0\ufe0f\ud83c\udf21\ufe0f"
        },
        {
          "role": "user",
          "content": "how do i measure the return temperature of the unit"
        },
        {
          "role": "assistant",
          "content": "To measure the return temperature of the unit, follow these steps:\n\n1. **Locate the Return Duct**: Find the return air duct where the air is being pulled into the system.\n\n2. **Use a Thermometer**: Insert a digital thermometer or a temperature probe into the return air duct. Make sure it'"'"'s positioned in the airflow but not touching any metal surfaces to get an accurate reading.\n\n3. **Record the Temperature**: Allow the thermometer to stabilize for a few minutes and then record the temperature reading.\n\nThis measurement will help you understand how much heat is being removed from the air as it passes through the system. If you have further questions, feel free to ask! \ud83c\udf21\ufe0f\ud83d\udccf"
        },
        {
          "role": "user",
          "content": "how do you tell the difference between the suction pressure and line pressure?"
        },
        {
          "role": "assistant",
          "content": "The suction pressure and liquid line pressure are two different measurements in an HVAC system:\n\n1. **Suction Pressure**: This is the pressure of the refrigerant in the suction line, which is the line that carries refrigerant gas back to the compressor from the evaporator coil. It'"'"'s usually measured at the service valve on the larger line (suction line) using a pressure gauge.\n\n2. **Liquid Line Pressure**: This is the pressure of the refrigerant in the liquid line, which carries refrigerant from the condenser to the expansion valve or metering device. It'"'"'s measured at the service valve on the smaller line (liquid line) using a pressure gauge.\n\nTo differentiate between them, you can look at the size of the lines and where they are located in the system. The suction line is typically larger and cooler to the touch, while the liquid line is smaller and warmer. When measuring, make sure your gauges are connected to the correct service ports for accurate readings. \ud83d\udccf\ud83d\udd27"
        },
        {
          "role": "user",
          "content": "what should be the the difference between the suction pressure and line pressure?"
        },
        {
          "role": "assistant",
          "content": "The difference between suction pressure and liquid line pressure can vary depending on the specific system and operating conditions. Generally, the suction pressure is lower because it measures the pressure of the refrigerant gas returning to the compressor, while the liquid line pressure is higher as it measures the pressure of the refrigerant in the liquid state leaving the condenser.\n\nFor example, if you have a system with a liquid line pressure of around 327 PSI (as indicated in the search results for a specific subcooling value and temperature), the suction pressure will typically be much lower, often in the range of 60-80 PSI for many systems. However, these values can vary based on factors like ambient temperature, system load, and refrigerant type.\n\nIt'"'"'s important to refer to the manufacturer'"'"'s specifications and charts for your specific unit to determine the expected pressures under normal operating conditions. \ud83d\udcc8\ud83d\udd27"
        },
        {
          "role": "user",
          "content": "how do a calculate a room'"'"'s cfm?"
        },
        {
          "role": "assistant",
          "content": "To calculate a room'"'"'s CFM (Cubic Feet per Minute), you need to know the room'"'"'s area, height, and type. Here'"'"'s a simple formula:\n\n1. **Determine the Room Volume**: Multiply the room'"'"'s area (in square feet) by its height (in feet) to get the volume in cubic feet.\n\n2. **Use Air Changes Per Hour (ACH)**: Depending on the room type, you'"'"'ll need a certain number of air changes per hour. For example, a living room might need 6 ACH, while a kitchen might need 15 ACH.\n\n3. **Calculate CFM**: Use the formula:\n   \\[\n   \\text{CFM} = \\frac{\\text{Room Volume} \\times \\text{ACH}}{60}\n   \\]\n   This formula divides the total air volume needed per hour by 60 to convert it to minutes.\n\nIf you provide me with the room'"'"'s area, height, and type, I can calculate the CFM for you! \ud83c\udfe0\ud83d\udccf"
        }
      ]
    }'
    

    🎁 Example Response

    {4 Items
    "id"
    :
    string
    "i3azo50ii1kq"
    "url"
    :
    string
    "https://gooey.ai/copilot/"
    "created_at"
    :
    string
    "2024-12-02T18:32:52.426930+00:00"
    "output"
    :
    {14 Items
    "final_prompt"
    :
    [16 Items
    0
    :
    {
    }2 Items
    1
    :
    {
    }2 Items
    2
    :
    {
    }2 Items
    3
    :
    {
    }2 Items
    4
    :
    {
    }2 Items
    5
    :
    {
    }2 Items
    6
    :
    {
    }2 Items
    7
    :
    {
    }2 Items
    8
    :
    {
    }2 Items
    9
    :
    {
    }2 Items
    10
    :
    {
    }2 Items
    11
    :
    {
    }2 Items
    12
    :
    {
    }2 Items
    13
    :
    {
    }2 Items
    14
    :
    {
    }3 Items
    15
    :
    {
    }3 Items
    ]
    "output_text"
    :
    [1 Items
    0
    :
    string
    "For a living room with an area of 240 square feet "
    ]
    "output_audio"
    :
    NULL
    "output_video"
    :
    NULL
    "raw_input_text"
    :
    string
    "the room's area is 240' by 11' high and it's a liv"
    "raw_tts_text"
    :
    NULL
    "raw_output_text"
    :
    [1 Items
    0
    :
    string
    "For a living room with an area of 240 square feet "
    ]
    "references"
    :
    [3 Items
    0
    :
    {
    }4 Items
    1
    :
    {
    }4 Items
    2
    :
    {
    }4 Items
    ]
    "final_search_query"
    :
    string
    "To calculate the CFM for your living room, you nee"
    "final_keyword_query"
    :
    NULL
    "output_documents"
    :
    NULL
    "reply_buttons"
    :
    NULL
    "finish_reason"
    :
    [1 Items
    0
    :
    string
    "stop"
    ]
    "called_functions"
    :
    [1 Items
    0
    :
    {
    }3 Items
    ]
    }
    }

    Please Login to generate the $GOOEY_API_KEY