AI Agents in Love: Bazed Agents + GPT-4V + hackathon = 💝 ✨ 😎

Nina Wieczorek
Bazed AI
Published in
3 min readFeb 14, 2024

--

Love is all there is. Personally, I truly believe it. Love ignites creativity, yet ironically, articulating it can be a challenge. Choosing the right words, the right flowers or the right gifts to express it is not easy.

In the legendary movie “Her,” the oh so handsome and talented Joaquin Phoenix writes handwritten letters on behalf of other people to help them express their feelings. Now this can be done with Bazed.ai.

Bazed AI Cupid Agent

Inspired by Her, we decided to recreate the experience for Valentine’s Day by creating Bazed Cupid Agent. We used Bazed Agent Framework (Bazed AF), GPT — 4V and Telegram.

The premise is simple:

  • Click on the link that will take you to Telegram.
  • Start conversation and upload pictures or some details of your crush, loved one or a partner. These can be solo or together.
  • That’s it. The Cupid Agent will write personalised Valentines notes based on the pictures you sent.
  • It can perform other tasks: chose and order flowers, look on Instagram photos, send notes via email, the sky is the limit. We will explore where that limit is on the upcoming hackathon. Scroll down for more information 👇

Bazed AI Agents are more than GPTs or API Assistants

Bazed AF is a framework for building fully autonomous agent swarms. It’s written in TypeScript, by developers for developers.

With Bazed, unlike GPTs, you are able to put your AI Agent on Telegram (with just 40 lines of code). You can put it on virtually any chat app using their existing Node.js libraries.

This is a small swarm of agents build with Bazed agent framwork: one is looking at the pictures sent by the user and the other agent handles the conversation, both have their own prompts and goals. You can extend it to perfom more tasks: chose and order flowers, look on Instgram photos, send notes via email, the sky is the limit.

While you could code a similar agent with LangChain you would have to handle the asynchronous nature of the chatbot and all intricacies that come with it. While getting a PoC off the ground shouldn’t be hard for any Python aficionado, putting a secure chatbot on Telegram might require some more tinkering. With Bazed.ai any software engineer can build agents in hours.

You could choose AutoGen instead but it would be more code to get predictable conversations out of the AutoGen model. Agents in AutoGen are not constrained in any way so it’s quite easy to end up with some of them hallucinating unless you add checks around.

Finally, you could just try plain Assistant API from OpenAI but in this case you don’t have access to their Vision API — you would have to integrate it yourself using function calls. Assistant API is great for solo chatbots but extending it with custom actions means lots of code every time you want to add a new function to your agent.

In all these cases, you’d have to figure out how to deploy and scale your agent, OpenAI clients, set up logging, rate limiting, write code to count tokens and set budgets so that users won’t burn through them too quickly. Fortunately, Bazed AF takes care of these out of the box.

Hackathon Invitation

The Cupid Agent, like all agents written with Bazed AF, is fully and easily extensible. We are announcing a hackathon soon to extend its capabilities and see how far we can take it.

> Join us on discord for more information.

> Here is the link to the repo of the Cupid Agent. Bazed AI framwork is open source.

--

--