Alexander Metzger

alex

2.96K runs
24 contributions since Jun 2023
LLM (8), Copilot (6), Functions (4)

Functions

Functions Minimal Web Request

Loading...

210 runs

Run sandboxed Javascript functions & API calls inside your AI recipes. Connect the best of AI to your own data, server or any API.

This is a minimal example for how to perform a web request using the Fetch API.

LLM Web Search

Fill in missing values in a JSON object

Loading...

2 runs

Revolutionize the way you fill in missing values in your database using the web. Use the power of GPT to find data values, summarize technical papers, translate languages and so much more to interpret the latest information from Google and fill in the missing values in your data that it can find! This would normally be a tedious manual process or require training custom imputation models, but can be automated for any data with LLMs + Google.

Search Query

iPhone 12 Pro specs

{
"product_class": "Smartphone",
"product_name": "iPhone 12 Pro with 128GB",
"manufacturer": "Apple",
"report_date": "October 13, 2020",
"use_location": "WW",
"assembly_location": "China",
"chip": {
"CPU": "Hexa-core",
"GPU": "Apple GPU (4-core graphics)",
"SoC": "Apple A14 Bionic"
},
"number_of_cores": {
"CPU": 6,
"GPU": 4,
"SoC": null
},
"hard_drive": {
"name": "128GB SSD",
"type": "SSD",
"size_gb": 128
},
"memory_gb": 6,
"battery_capacity_mah": 2815,
"display": {
"size": "6.1 inches",
"type": "OLED",
"max_brightness_nits": 800,
"refresh_rate_hz": null
},
"yearly_household_energy_consumption_kWh": null,
"lifetime_years": 3.5,
"dimension": {
"width_cm": 7.15,
"height_cm": 14.67,
"depth_cm": 0.74
},
"weight_kg": 0.189,
"GWP": {
"total_kg_CO2": 82.0,
"manufacturing_phase": 0.86,
"transport_phase": 0.02,
"use_phase": 0.11,
"end_of_life_phase": 0.01,
"electronics": null,
"error": null,
"top_components": {
"pcb": null,
"system_component": null,
"display": null,
"battery": null,
"keyboard": null,
"hdd": null,
"ssd": null,
"storage": null,
"inductor": null,
"capacitor": null,
"ic": null
},
"other_components": null
},
"comment": "iPhone 12 Pro 128GB (82kgCO2eq) - iPhone 12 Pro 256GB (93kgCO2eq) - iPhone 12 Pro 512GB (107kgCO2eq) - ",
"source_urls": [
"https://www.apple.com/environment/pdf/products/iphone/iPhone_12_Pro_PER_Oct2020.pdf"
],
"add_date": "2024-06-28",
"add_method": "Apple Auto Parser"
}

LLM

Ulangizi AI Analysis Script with Audio Detection

Loading...

0 runs

Our https://gooey.ai/copilot workflow let's anyone build WhatsApp/FB or their own GPT4 powered chat bots, by just swapping our their own documents and GPT prompts. Additionally, we also enable you to analyze the user's message and bot's answer to create structured data from the raw conversational messages.

Each Gooey.AI copilot will have their own conversational analysis script like this one to help analyze the user's questions and the bot's ability to answer them well.

In this case, we wantw to analyze the user's messages and categorize them based on their own logic. Hence, this LLM prompt takes a message and response and then determines whether:

  1. We should update the user's profile object (because they mentioned their location, crop or gender)
  2. The user's question was answered
  3. The topic of the user's question.
  4. Whether it includes audio to demonstrate that analysis scripts have access to all the api fields found here: https://api.gooey.ai/docs#tag/Copilot-for-your-Enterprise/operation/video-bots

Prompt

Your job is to analyze incoming chat messages from farmers and the responses from a farming ai chatbot and determine how to categorize them.

The answer is only missing if the assistant:
---
1. Can not give any additional information
2. Apologizes
3. Tells the user to check a website
---
If it does not say all three things, the answer has been found.

For the user's subject answer, choose from the following list as category:

Subject Answers
*********************
Salutation
Plant Death (Infestation and Infection)
Farming Practice
Irrigation
Video
Supplements (Fertilizers and Pesticides)
Unknown Category
*********************
Assistant Answers
*********************
Found
Missing
*********************
Gender
*********************
unknown
male
female
unspecified
*********************

Conversation: """
   user: Hi
   user_audio: None
   assistant: Hello! How can I assist you with farming today?
"""
Analysis: {"user": {"crop": null, "subject": ”Salutation”, "location": null, "gender": "unspecified"}, "assistant": {"answer": "Found"}, "audio": false}
///
Conversation: """
   user: My rice crop has yellow stem borer infestation. Please suggest
   user_audio: https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/0e7b333a-2818-11ef-8034-02420a000167/openai_tts_short.wav.wav
   assistant: Yellow stem borer is a major pest of rice crops. Here are some management practices that can help control the infestation of yellow stem borer in rice crops:

1. Use resistant varieties of rice such as Ratna, Sasyasree, Vikas, HKR 46, NDGR 21, Pantdhan 6, VLK 39, Prahlad, Birsadhan 201, Bhudeb Ainesh, Matangini, Radha, Sudha, Amulya, Bhagirathi, Jogan, Mandira, Nalini, Sabita, VL16 and VL 206. [2][3]

2. Cultural practices such as seed treatment with approved biopesticides or chemical pesticides before sowing, removing and destroying the grass weed hosts in the field bunds, channel or nearby areas of rice fields as these serve as alternative hosts for the pest, avoiding close spacing as it often increases the easy movement of pest, handpicking and destroying egg masses in the seedbed (nursery) before transplanting the field, cutting the leaf-top before transplanting to reduce carry-over of eggs from the seedbed to the field, raising the level of irrigation water periodically to submerge any eggs deposited on the lower parts of the plant, cutting out the stems with dead hearts and removing them from the field and destroying the larvae or burning the stem, and splitting applications of nitrogen fertilizer. High nitrogen application favors build-up of stem
"""
Analysis: {"user": {"crop": ”rice”, "subject": ”Plant Death (Infestation and Infection)”, "location": null, "gender": "unspecified"}, "assistant": {"answer": "Found"}, "audio": true}
///
Conversation: """
   user: A drug can be used to increase the height of chillies in the chilli garden
   user_audio: None
   assistant: I'm sorry, but I couldn't find any information in the search results about a drug that can increase the height of chillies in a garden. It is important to note that using untested or unverified drugs on crops can be harmful and may not be effective. It is best to consult with a local agriculture expert for specific recommendations for your district and type of plant.
"""
Analysis: {"user": {"crop": ”chili”, "subject": ”Supplements (Fertilizers and Pesticides)”, "location": null, "gender": "unspecified"}, "assistant": {"answer": "Missing"}, "audio": false}
///
Conversation: """
   user: Tell me about organic farming
   user_audio: https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/71e633b4-2e23-11ef-9876-02420a000107/elevenlabs_gen%201.mp3.wav
   assistant: Organic farming is a method of farming that avoids the use of synthetic fertilizers, pesticides, and genetically modified organisms (GMOs). Instead, it relies on natural methods like crop rotation, composting, and biological pest control to maintain soil fertility and control pests. Organic farming also emphasizes the use of renewable resources and conservation of water and soil. [1]
"""
Analysis: {"user": {"crop": null, "subject": "Farming Practice", "location": null, "gender": "unspecified"}, "assistant": {"answer": "Found"}, "audio": true}
///
Conversation: """
   user: How many days should be watered after making the pepper garden?
   user_audio: https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/86956d86-4a33-11ee-b1ab-02420a000152/Untitled%20video%20-%20Made%20with%20Clipchamp%203.mp3.wav
   assistant: According to [1], immediately after transplanting chilli seedlings to the field, the field should be irrigated. The second irrigation is given 10 days after transplanting. Afterward, irrigation is given as per the requirement. Generally, 8 to 9 irrigations are given depending on rainfall, soil type, humidity, and temperature. The method of irrigation adopted is ridges and furrow. For more specific information on irrigation practices for your particular crop and district, please consult with your local agriculture extension office or watch relevant videos on https://www.digitalgreen.org/videos. 💦
"""
Analysis: {"user": {"crop": "pepper", "subject": "Irrigation", "location": null, "gender": "unspecified"}, "assistant": {"answer": "Found"}, "audio": true}
///
Conversation: """
   user: Reasons why chillies fall apart
   user_audio:
   assistant: Chillies can fall apart due to several reasons, including environmental conditions, pests, and diseases. Inadequate pollination due to low bee activity or high temperatures can lead to poor fruit development and cause the chillies to fall apart [2]. Nutrient deficiencies, particularly a lack of phosphorus, can also affect fruit development and cause the chillies to fall apart [1]. Additionally, pests such as the chilli blossom midge can cause poor development of fruits, leading to the chillies falling apart [3]. It is important to consult with a local agriculture expert to identify the specific cause and recommend appropriate management practices for your district and type of plant. For more information on farming in India, you can visit https://www.digitalgreen.org/videos. 🌶️🌱
"""
Analysis: {"user": {"crop": ”chili”, "subject": ”Plant Death (Infestation and Infection)”, "location": null, "gender": "unspecified"}, "assistant": {"answer": "Found"}, "audio": false}
///
Conversation: """
   user: How to prepare dukki for planting chili garden
   user_audio:      
   assistant: I'm sorry, I couldn't find any relevant information on preparing "dukki" for planting chili garden in the search results. Could you please provide more context or try rephrasing your question?
"""
Analysis: {"user": {"crop": "chili", "subject": "Farming Practice", "location": null, "gender": "unspecified"}, "assistant": {"answer": "Missing"}, "audio": false}
///
Conversation: """
   user: Is there a video for this?
   user_audio: - 
   assistant: I'm sorry, I don't have enough information to answer your question. However, you can visit https://www.digitalgreen.org/videos to find helpful videos on various farming practices in India.
"""
Analysis: {"user": {"crop": null, "subject": "Video", "location": null, "gender": "unspecified"}, "assistant": {"answer": "Missing"}, "audio": false}
///
Conversation: """
   user: Which crop can be planted in Anantapur?
   user_audio: https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/8d3f18d4-5f66-11ed-a8a9-02420a0000aa/al-hitchcock-arpa-Merry_Christmas__Jon%203.wav
   assistant: Anantapur district in Andhra Pradesh is suitable for growing crops like groundnut, maize, jowar, sunflower, cotton, and chilli. However, the choice of crop depends on various factors such as soil type, climate, and water availability. It is recommended to consult with local agricultural experts or extension officers to determine the best crop for a particular area. [1]
"""
Analysis: {"user": {"crop": null, "subject": "Farming Practice", "location": "Anantapur", "gender": "unspecified"}, "assistant": {"answer": "Found"}, "audio": true}
///
Conversation: """
   user: {{ user_msg }}
   user_audio: {{ input_audio }}
   assistant:  {{ assistant_msg }}
"""
Analysis:
Copilot

Carbon Bot

Loading...

21 runs

Understanding the environmental impact of the products we use everyday would make it easier to adopt more sustainable practices and consciously choose less harmful products. However calculating metrics such as the carbon footprint of a product is hard. There are many complicated factors to consider both in terms of weighing the manufactoring phase against the use phase but also the thousands of different components that make up something like an iPhone. Carbon Bot is here to collect data around all this and help arrive at environmental impact estimates for your products by browsing the data and doing the calculations for you.

Prompt

What about the XPS 16 Laptop by Dell?

Response

I don't have specific data for a Dell XPS 16 laptop as it wasn't listed in the search results. However, I can provide an estimate based on similar models from Dell.

For instance, the Dell XPS 15 models like the 9560 and 9570 have a carbon footprint of about 337 kg CO2e and 324 kg CO2e respectively, including both manufacturing and use phases [*]. Assuming the XPS 16 would be similar or slightly higher due to potentially larger size or more powerful components, we might estimate its carbon footprint to be around 340 to 360 kg CO2e for manufacturing and use combined.

During use, assuming a similar profile to the XPS 15 models, the annual CO2 emissions could be estimated based on typical usage patterns, such as power consumption and hours of operation. If we assume an average electricity consumption of about 50 kWh per year (similar to other high-performance laptops), and using the U.S. average CO2 emission factor of about 0.4 kg CO2/kWh, this results in about 20 kg CO2e per year during use.

These estimates are based on extrapolations from similar models and should be treated as approximations.

*. rarecoil_laptop-co2e_ Carbon footprints for various developer-friendly laptops notebook computers_.pdf, page 4 https://gooey.ai/2/xLy4

QR Code

QR Monster v2 Landscape

Loading...

860 runs

Download

https://gooey.ai/2/jNLhttps://gooey.ai/qr-code (Views: 625)

QR Code

QR Monster v2

Loading...

1.79K runs

Download

https://gooey.ai/2/loVbhttps://gooey.ai/qr (Views: 590)

QR Code

Underwater World

Loading...

252 runs

Download

https://gooey.ai/

QR Code

AI QR Code Generator

Loading...

139K runs

Generate AI-empowered artistic QR codes tailored to your style for impactful marketing, branding & more with Gooey.AI. Add your URL and image prompt, we'll create in an AI QR code in under 30 seconds. Check out Examples for rad QR code ideas too.

To know more, head to our AI QR CODE HELP GUIDE!

Download

https://gooey.ai/2/rvDJhttps://g.page/r/CYqOGUaJJKI0EBM/review
(Views: 1684)

LLM

PaLM2 Translations with Custom Glossary

Loading...

6 runs

When released, PaLM 2 not only surpassed other LLMs in translation abilities between multiple languages but also demonstrated significant improvements over Google Translate (see the Technical Report by Google). This example allows you to easily change out the languages and translation text via variables to explore this and compare with other LLMs. You can also add your own TSV or CSV glossary in the format spec'ed by Google Translate. This example run (or runs like it) can be imported into the Translation Recipe to compare with traditional translation tools!

Prompt

Remember this glossary of fixed translation terms. The columns represent language codes in BCP47 and the rows are the terms:
{{ glossary }}

PROMPT: Please use the glossary to translate the following text from en-US to da-DK.
<Q>Hello, my name is Bob and I work at gooey.ai which is an awesome company that coincidentally also made this tool. I am made by goowy.
<A>Hej, jeg hedder Bob, og jeg arbejder hos Gooey.AI, som er en fantastisk virksomhed, der tilfældigvis også lavede dette værktøj. Jeg er lavet af Gooey.
PROMPT: Please use the glossary to translate the following text from {{ source_language }} to {{ target_language }}.
<Q>{{ text_to_translate }}
<A>
QR Code

AI QR Code for Shop Reviews

Loading...

118 runs

Get rave reviews from your customers. Generate a custom, personalize QR Code that takes your customers directly to your reviews page. Our AI QR Code Generator will make it fun and easy for your customers to give your their reviews.

Download

https://gooey.ai/2/PlLKhttps://g.page/r/CYqOGUaJJKI0EBE/review (Views: 501)