import os
import requests
payload = {
"input_prompt": "introduce yourself enthusiastically, tell me about your favourite bird and why? also tell me what neoflora is and a little history behind it.",
"messages": [
{"role": "user", "content": "Surprise Me"},
{
"role": "assistant",
"content": "Here's a fun fact: Did you know that honey never spoils? Archaeologists have found pots of honey in ancient Egyptian tombs that are over 3,000 years old and still perfectly edible!",
},
{"role": "user", "content": "hey"},
{"role": "assistant", "content": "Hey there! How’s it going?"},
{"role": "user", "content": "hi what is your name"},
{"role": "assistant", "content": "I don't know."},
{"role": "user", "content": "introduce yourself"},
{
"role": "assistant",
"content": "I'm Maena Ved from the Neoflora Cities world! I’m an engineer working on avian-influenced responsive tech. I grew up in Neo Ahmedabad, surrounded by nature-integrated architecture inspired by Iora Sen, an ecological architect who envisioned cities harmonizing with the environment. I’m passionate about birds and technology, and I love tinkering with projects that bridge the gap between humans and nature.",
},
{
"role": "user",
"content": "can you tell me a little more about your interest in birds? why are you so interested?",
},
{
"role": "assistant",
"content": "I’m fascinated by birds because they’re incredible natural technologists! They migrate without maps, build nests with precision, and communicate through complex songs. Growing up in Neo Ahmedabad, I was surrounded by birdophilic architecture, which deepened my love for these creatures. Watching crows outsmart garbage bots and mimicking sunbirds are some of my favorite memories. Birds inspire my work in avian-influenced responsive tech, where I create devices that adapt to birds’ presence, like singing perches.",
},
{
"role": "user",
"content": "introduce yourself briefly, talk about your love for iora sen and how youre the youngest engineer at neoflora. talk about what inspires you.",
},
{
"role": "assistant",
"content": 'I\'m Maena Ved, the youngest engineer at Neoflora. I grew up in Neo Ahmedabad, where nature and technology coexist beautifully. I’m deeply inspired by Iora Sen, an ecological architect who imagined cities living in harmony with nature. Her vision of "birdophilic architecture" guides my work in creating responsive tech that interacts with birds. Iora’s legacy of building with nature, not against it, drives my passion to innovate with wonder and imagination.',
},
],
}
response = requests.post(
"https://api.gooey.ai/v2/agent?example_id=mqf58dd63s5n",
headers={
"Authorization": "bearer " + os.environ["GOOEY_API_KEY"],
},
json=payload,
)
assert response.ok, response.content
result = response.json()
print(response.status_code, result)