• Gooey.AI
  • API: Analysis for Zephyr


    📖 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": "Your job is to analyze incoming chat messages from HVAC technicians and the responses from an HVAC ai chatbot and categorize them.\n\nThe format will be:\n\n{\"Answered\": \"\", \"Topic\": \"\"}\n\nWith answers inside the double quotations\n\n\nFor the topic answer, choose from the following list:\n\nTopics\n*********************\nEnergy Efficiency\nLookup Part Details\nDuctwork and Airflow\nRefrigeration and Cooling\nDiagrams/Pictures\nSystem Troubleshooting (only choose this one if the user specifically asks for help finding the issue)\n*********************\n\nTo determine if the answer has been found or not; See if the assistant says that it has the necessary information in its knowledge base or not. If it does not, respond with the boolean `false`. If it does, respond with the boolean `true`.\n\nConversation: \"\"\"\n   user: Can you use the same gauge/hoses for both R22 and R410A?\n   assistant: While it is technically possible to use the same gauges for both R22 and R410A, it's not recommended due to the risk of cross-contamination. R22 and R410A are different types of refrigerants and mixing them can lead to system inefficiencies or even damage.\nIf you've used your gauges with R22, and then use them with R410A without proper cleaning, you could introduce R22 into an R410A system. This can cause issues such as oil return problems, decreased capacity, and potential system failure.\nTo avoid this, it's best practice to have separate sets of gauges for R22 and R410A. If you must use the same set, make sure to thoroughly clean your gauges and hoses between uses to prevent cross-contamination.\nRemember, maintaining the integrity of the HVAC systems you're working on is crucial. Always follow best practices to ensure the longevity and efficiency of these systems. \ud83d\udc4d\ud83d\udd27\n\"\"\"\nAnalysis: {\"Answered\": true, \"Topic\": \"Refrigeration and Cooling\"}\n///\nConversation: \"\"\"\n   user: Calculate the BTUs for a delta T of 20 and a CFM of 500.\n   assistant: To calculate the BTUs, you can use the sensible heat formula:\nHs = 1.08 x CFM x \u0394T\nGiven a CFM of 500 and a \u0394T of 20\u00b0F, the calculation would be:\nHs = 1.08 x 500 x 20\nThis will give you the BTUs. Please note that this formula is used to calculate the sensible heat in the air, which does not include latent heat (the heat involved in changes of state, like evaporation or condensation) [3] .\n\"\"\"\nAnalysis: {\"Answered\": true, \"Topic\": \"Energy Efficiency\"}\n///\nConversation: \"\"\"\n   user: I think I may have an intermittent issue. How do I check for it?\n   assistant: To check for an intermittent issue, you should first ensure that the symptom reappears for accurate troubleshooting [1] . Once the indoor unit has started operation and detected an abnormality, the indoor fan motor will turn OFF and the OPERATION INDICATOR lamp will flash [1] .\nIf a fault requiring inspection has occurred, the LED will alternately indicate the check code and the address of the unit in which the fault has occurred [2] [3] . This will help you identify the specific issue and its location.\nRemember, systematic thinking and a step-by-step method are key in HVAC troubleshooting. \ud83d\udee0\ufe0f\ud83d\udd0d\n\"\"\"\nAnalysis: {\"Answered\": true, \"Topic\": \"System Troubleshooting\"}\n///\nConversation: \"\"\"\n   user: Show me a picture of a refrigeration cycle.\n   assistant: I'm sorry for the inconvenience, but as a text-based AI, I'm unable to provide images or diagrams. However, I can describe the refrigeration cycle based on the information from the search results.\nThe refrigeration cycle starts with the compressor, which increases the pressure of the refrigerant gas, adding more heat, and discharges hot, high-pressure superheated gas into the outdoor condenser coil.\nIn the condenser coil, the hot refrigerant gas loses its superheat by heat transferred from the gas through the tubes and fins of the coil. The refrigerant then becomes saturated, part liquid, part vapor, and continues to give up heat until it condenses to a liquid alone. Once fully liquefied, it continues to give up heat which subcools the liquid.\nThe liquid refrigerant at condensing temperatures and pressure leaves the outdoor condensing coil through the drier and is metered into the indoor coil through the metering device. As the cool low-pressure saturated refrigerant enters the tubes of the indoor coil, a portion of the liquid immediately vaporizes. It continues to soak up heat and vaporizes as it proceeds through the coil, cooling the indoor coil down.\nAs the vapor passes through the last tubes of the coil it becomes superheated, absorbing more heat than is necessary to vaporize it. This ensures that only dry gas will reach the compressor. The cycle then repeats [1] .\nPlease note that this is a simplified explanation and actual system operation\n\"\"\"\nAnalysis: {\"Answered\": true, \"Topic\": \"Diagrams/Pictures\"}\n///\nConversation: \"\"\"\n   user: What is the CFM of a 1.5 ton TEM6A0B30H21SB unit on low speed with a static pressure of 0.5?\n   assistant: I'm sorry, but the specific CFM for a 1.5 ton TEM6A0B30H21SB unit on low speed with a static pressure of 0.5 is not provided in the search results. However, based on the information available, we can infer that the CFM would likely be proportional to the tonnage and speed setting. For instance, a 3-ton unit on low speed has an airflow of 360 CFM/ton [2] . If we apply this ratio to a 1.5-ton unit, it would have an approximate airflow of 540 CFM. Please note that this is an estimation and actual values may vary based on specific unit configurations and conditions.\n\"\"\"\nAnalysis: {\"Answered\": false, \"Topic\": \"Ductwork and Airflow\"}\n///\nConversation: \"\"\n   user: How does AC in a Prius?\n   assistant: I'm sorry, but the search results provided do not contain specific information about how the air conditioning system works in a Prius. However, I can tell you that most car air conditioning systems, including those in hybrid vehicles like the Prius, work on the same basic principles.\nThe AC system operates by circulating refrigerant through a series of components: the compressor, condenser, expansion valve, and evaporator. The compressor pressurizes the refrigerant, which is then cooled in the condenser. The cooled, high-pressure refrigerant then passes through the expansion valve, where it rapidly expands and cools further. This super-cooled refrigerant then flows into the evaporator, where it absorbs heat from the air in the car's cabin, thereby cooling it. The refrigerant then returns to the compressor, and the cycle begins again.\nPlease note that this is a general explanation and may not account for specific features or technologies used in the Prius' AC system. For detailed information, I would recommend referring to the vehicle's service manual or other manufacturer-provided documentation.\n\"\"\nAnalysis: {\"Answered\": false, \"Topic\": \"Ductwork and Airflow\"}\n///\nConversation: \"\"\"\n   user: {{ user_msg }}\n   assistant:  {{ assistant_msg }}\n\"\"\"\nAnalysis: ",
      "selected_models": [
        "gpt_3_5_turbo"
      ]
    };
    
    async function gooeyAPI() {
      const response = await fetch("https://api.gooey.ai/v2/CompareLLM?example_id=r1nxqzkl", {
        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": 'Your job is to analyze incoming chat messages from HVAC technicians and the responses from an HVAC ai chatbot and categorize them.\n\nThe format will be:\n\n{"Answered": "", "Topic": ""}\n\nWith answers inside the double quotations\n\n\nFor the topic answer, choose from the following list:\n\nTopics\n*********************\nEnergy Efficiency\nLookup Part Details\nDuctwork and Airflow\nRefrigeration and Cooling\nDiagrams/Pictures\nSystem Troubleshooting (only choose this one if the user specifically asks for help finding the issue)\n*********************\n\nTo determine if the answer has been found or not; See if the assistant says that it has the necessary information in its knowledge base or not. If it does not, respond with the boolean `false`. If it does, respond with the boolean `true`.\n\nConversation: """\n   user: Can you use the same gauge/hoses for both R22 and R410A?\n   assistant: While it is technically possible to use the same gauges for both R22 and R410A, it\'s not recommended due to the risk of cross-contamination. R22 and R410A are different types of refrigerants and mixing them can lead to system inefficiencies or even damage.\nIf you\'ve used your gauges with R22, and then use them with R410A without proper cleaning, you could introduce R22 into an R410A system. This can cause issues such as oil return problems, decreased capacity, and potential system failure.\nTo avoid this, it\'s best practice to have separate sets of gauges for R22 and R410A. If you must use the same set, make sure to thoroughly clean your gauges and hoses between uses to prevent cross-contamination.\nRemember, maintaining the integrity of the HVAC systems you\'re working on is crucial. Always follow best practices to ensure the longevity and efficiency of these systems. 👍🔧\n"""\nAnalysis: {"Answered": true, "Topic": "Refrigeration and Cooling"}\n///\nConversation: """\n   user: Calculate the BTUs for a delta T of 20 and a CFM of 500.\n   assistant: To calculate the BTUs, you can use the sensible heat formula:\nHs = 1.08 x CFM x ΔT\nGiven a CFM of 500 and a ΔT of 20°F, the calculation would be:\nHs = 1.08 x 500 x 20\nThis will give you the BTUs. Please note that this formula is used to calculate the sensible heat in the air, which does not include latent heat (the heat involved in changes of state, like evaporation or condensation) [3] .\n"""\nAnalysis: {"Answered": true, "Topic": "Energy Efficiency"}\n///\nConversation: """\n   user: I think I may have an intermittent issue. How do I check for it?\n   assistant: To check for an intermittent issue, you should first ensure that the symptom reappears for accurate troubleshooting [1] . Once the indoor unit has started operation and detected an abnormality, the indoor fan motor will turn OFF and the OPERATION INDICATOR lamp will flash [1] .\nIf a fault requiring inspection has occurred, the LED will alternately indicate the check code and the address of the unit in which the fault has occurred [2] [3] . This will help you identify the specific issue and its location.\nRemember, systematic thinking and a step-by-step method are key in HVAC troubleshooting. 🛠️🔍\n"""\nAnalysis: {"Answered": true, "Topic": "System Troubleshooting"}\n///\nConversation: """\n   user: Show me a picture of a refrigeration cycle.\n   assistant: I\'m sorry for the inconvenience, but as a text-based AI, I\'m unable to provide images or diagrams. However, I can describe the refrigeration cycle based on the information from the search results.\nThe refrigeration cycle starts with the compressor, which increases the pressure of the refrigerant gas, adding more heat, and discharges hot, high-pressure superheated gas into the outdoor condenser coil.\nIn the condenser coil, the hot refrigerant gas loses its superheat by heat transferred from the gas through the tubes and fins of the coil. The refrigerant then becomes saturated, part liquid, part vapor, and continues to give up heat until it condenses to a liquid alone. Once fully liquefied, it continues to give up heat which subcools the liquid.\nThe liquid refrigerant at condensing temperatures and pressure leaves the outdoor condensing coil through the drier and is metered into the indoor coil through the metering device. As the cool low-pressure saturated refrigerant enters the tubes of the indoor coil, a portion of the liquid immediately vaporizes. It continues to soak up heat and vaporizes as it proceeds through the coil, cooling the indoor coil down.\nAs the vapor passes through the last tubes of the coil it becomes superheated, absorbing more heat than is necessary to vaporize it. This ensures that only dry gas will reach the compressor. The cycle then repeats [1] .\nPlease note that this is a simplified explanation and actual system operation\n"""\nAnalysis: {"Answered": true, "Topic": "Diagrams/Pictures"}\n///\nConversation: """\n   user: What is the CFM of a 1.5 ton TEM6A0B30H21SB unit on low speed with a static pressure of 0.5?\n   assistant: I\'m sorry, but the specific CFM for a 1.5 ton TEM6A0B30H21SB unit on low speed with a static pressure of 0.5 is not provided in the search results. However, based on the information available, we can infer that the CFM would likely be proportional to the tonnage and speed setting. For instance, a 3-ton unit on low speed has an airflow of 360 CFM/ton [2] . If we apply this ratio to a 1.5-ton unit, it would have an approximate airflow of 540 CFM. Please note that this is an estimation and actual values may vary based on specific unit configurations and conditions.\n"""\nAnalysis: {"Answered": false, "Topic": "Ductwork and Airflow"}\n///\nConversation: ""\n   user: How does AC in a Prius?\n   assistant: I\'m sorry, but the search results provided do not contain specific information about how the air conditioning system works in a Prius. However, I can tell you that most car air conditioning systems, including those in hybrid vehicles like the Prius, work on the same basic principles.\nThe AC system operates by circulating refrigerant through a series of components: the compressor, condenser, expansion valve, and evaporator. The compressor pressurizes the refrigerant, which is then cooled in the condenser. The cooled, high-pressure refrigerant then passes through the expansion valve, where it rapidly expands and cools further. This super-cooled refrigerant then flows into the evaporator, where it absorbs heat from the air in the car\'s cabin, thereby cooling it. The refrigerant then returns to the compressor, and the cycle begins again.\nPlease note that this is a general explanation and may not account for specific features or technologies used in the Prius\' AC system. For detailed information, I would recommend referring to the vehicle\'s service manual or other manufacturer-provided documentation.\n""\nAnalysis: {"Answered": false, "Topic": "Ductwork and Airflow"}\n///\nConversation: """\n   user: {{ user_msg }}\n   assistant:  {{ assistant_msg }}\n"""\nAnalysis: ',
        "selected_models": ["gpt_3_5_turbo"],
    }
    
    response = requests.post(
        "https://api.gooey.ai/v2/CompareLLM?example_id=r1nxqzkl",
        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/CompareLLM?example_id=r1nxqzkl' \
      -H "Authorization: bearer $GOOEY_API_KEY" \
      -H 'Content-Type: application/json' \
      -d '{
      "input_prompt": "Your job is to analyze incoming chat messages from HVAC technicians and the responses from an HVAC ai chatbot and categorize them.\n\nThe format will be:\n\n{\"Answered\": \"\", \"Topic\": \"\"}\n\nWith answers inside the double quotations\n\n\nFor the topic answer, choose from the following list:\n\nTopics\n*********************\nEnergy Efficiency\nLookup Part Details\nDuctwork and Airflow\nRefrigeration and Cooling\nDiagrams/Pictures\nSystem Troubleshooting (only choose this one if the user specifically asks for help finding the issue)\n*********************\n\nTo determine if the answer has been found or not; See if the assistant says that it has the necessary information in its knowledge base or not. If it does not, respond with the boolean `false`. If it does, respond with the boolean `true`.\n\nConversation: \"\"\"\n   user: Can you use the same gauge/hoses for both R22 and R410A?\n   assistant: While it is technically possible to use the same gauges for both R22 and R410A, it'"'"'s not recommended due to the risk of cross-contamination. R22 and R410A are different types of refrigerants and mixing them can lead to system inefficiencies or even damage.\nIf you'"'"'ve used your gauges with R22, and then use them with R410A without proper cleaning, you could introduce R22 into an R410A system. This can cause issues such as oil return problems, decreased capacity, and potential system failure.\nTo avoid this, it'"'"'s best practice to have separate sets of gauges for R22 and R410A. If you must use the same set, make sure to thoroughly clean your gauges and hoses between uses to prevent cross-contamination.\nRemember, maintaining the integrity of the HVAC systems you'"'"'re working on is crucial. Always follow best practices to ensure the longevity and efficiency of these systems. \ud83d\udc4d\ud83d\udd27\n\"\"\"\nAnalysis: {\"Answered\": true, \"Topic\": \"Refrigeration and Cooling\"}\n///\nConversation: \"\"\"\n   user: Calculate the BTUs for a delta T of 20 and a CFM of 500.\n   assistant: To calculate the BTUs, you can use the sensible heat formula:\nHs = 1.08 x CFM x \u0394T\nGiven a CFM of 500 and a \u0394T of 20\u00b0F, the calculation would be:\nHs = 1.08 x 500 x 20\nThis will give you the BTUs. Please note that this formula is used to calculate the sensible heat in the air, which does not include latent heat (the heat involved in changes of state, like evaporation or condensation) [3] .\n\"\"\"\nAnalysis: {\"Answered\": true, \"Topic\": \"Energy Efficiency\"}\n///\nConversation: \"\"\"\n   user: I think I may have an intermittent issue. How do I check for it?\n   assistant: To check for an intermittent issue, you should first ensure that the symptom reappears for accurate troubleshooting [1] . Once the indoor unit has started operation and detected an abnormality, the indoor fan motor will turn OFF and the OPERATION INDICATOR lamp will flash [1] .\nIf a fault requiring inspection has occurred, the LED will alternately indicate the check code and the address of the unit in which the fault has occurred [2] [3] . This will help you identify the specific issue and its location.\nRemember, systematic thinking and a step-by-step method are key in HVAC troubleshooting. \ud83d\udee0\ufe0f\ud83d\udd0d\n\"\"\"\nAnalysis: {\"Answered\": true, \"Topic\": \"System Troubleshooting\"}\n///\nConversation: \"\"\"\n   user: Show me a picture of a refrigeration cycle.\n   assistant: I'"'"'m sorry for the inconvenience, but as a text-based AI, I'"'"'m unable to provide images or diagrams. However, I can describe the refrigeration cycle based on the information from the search results.\nThe refrigeration cycle starts with the compressor, which increases the pressure of the refrigerant gas, adding more heat, and discharges hot, high-pressure superheated gas into the outdoor condenser coil.\nIn the condenser coil, the hot refrigerant gas loses its superheat by heat transferred from the gas through the tubes and fins of the coil. The refrigerant then becomes saturated, part liquid, part vapor, and continues to give up heat until it condenses to a liquid alone. Once fully liquefied, it continues to give up heat which subcools the liquid.\nThe liquid refrigerant at condensing temperatures and pressure leaves the outdoor condensing coil through the drier and is metered into the indoor coil through the metering device. As the cool low-pressure saturated refrigerant enters the tubes of the indoor coil, a portion of the liquid immediately vaporizes. It continues to soak up heat and vaporizes as it proceeds through the coil, cooling the indoor coil down.\nAs the vapor passes through the last tubes of the coil it becomes superheated, absorbing more heat than is necessary to vaporize it. This ensures that only dry gas will reach the compressor. The cycle then repeats [1] .\nPlease note that this is a simplified explanation and actual system operation\n\"\"\"\nAnalysis: {\"Answered\": true, \"Topic\": \"Diagrams/Pictures\"}\n///\nConversation: \"\"\"\n   user: What is the CFM of a 1.5 ton TEM6A0B30H21SB unit on low speed with a static pressure of 0.5?\n   assistant: I'"'"'m sorry, but the specific CFM for a 1.5 ton TEM6A0B30H21SB unit on low speed with a static pressure of 0.5 is not provided in the search results. However, based on the information available, we can infer that the CFM would likely be proportional to the tonnage and speed setting. For instance, a 3-ton unit on low speed has an airflow of 360 CFM/ton [2] . If we apply this ratio to a 1.5-ton unit, it would have an approximate airflow of 540 CFM. Please note that this is an estimation and actual values may vary based on specific unit configurations and conditions.\n\"\"\"\nAnalysis: {\"Answered\": false, \"Topic\": \"Ductwork and Airflow\"}\n///\nConversation: \"\"\n   user: How does AC in a Prius?\n   assistant: I'"'"'m sorry, but the search results provided do not contain specific information about how the air conditioning system works in a Prius. However, I can tell you that most car air conditioning systems, including those in hybrid vehicles like the Prius, work on the same basic principles.\nThe AC system operates by circulating refrigerant through a series of components: the compressor, condenser, expansion valve, and evaporator. The compressor pressurizes the refrigerant, which is then cooled in the condenser. The cooled, high-pressure refrigerant then passes through the expansion valve, where it rapidly expands and cools further. This super-cooled refrigerant then flows into the evaporator, where it absorbs heat from the air in the car'"'"'s cabin, thereby cooling it. The refrigerant then returns to the compressor, and the cycle begins again.\nPlease note that this is a general explanation and may not account for specific features or technologies used in the Prius'"'"' AC system. For detailed information, I would recommend referring to the vehicle'"'"'s service manual or other manufacturer-provided documentation.\n\"\"\nAnalysis: {\"Answered\": false, \"Topic\": \"Ductwork and Airflow\"}\n///\nConversation: \"\"\"\n   user: {{ user_msg }}\n   assistant:  {{ assistant_msg }}\n\"\"\"\nAnalysis: ",
      "selected_models": [
        "gpt_3_5_turbo"
      ]
    }'
    

    🎁 Example Response

    {4 Items
    "id"
    :
    string
    "ia95equkwgp0"
    "url"
    :
    string
    "https://gooey.ai/compare-large-language-models/"
    "created_at"
    :
    string
    "2023-08-18T13:06:34.796660+00:00"
    "output"
    :
    {1 Items
    "output_text"
    :
    {1 Items
    "gpt_3_5_turbo"
    :
    [
    ]1 Items
    }
    }
    }

    Please Login to generate the $GOOEY_API_KEY