Why dream with GPT-4o and Telegram

Have you ever wanted to know what grows under your feet? To me – always! But, alas, plants are signed only in the Botanical Garden.

In the past, I've had to use internet search engines, Google Lens, botanical apps, and finally paper guides.

Alpine flower guide

Alpine flower guide

ChatGPT 4 has made the task much easier. It turned out that he

  • identifies plants well even without flowers or fruits;

  • not picky about photo quality;

  • notices the smallest details.

He has something to say even about random grass underfoot, not to mention more complex compositions:

Where does the boat end and the flower bed begin?

Where does the boat end and the flower bed begin?

In the photo you can see several types of plants. Among them:

1. The yellow flowers in the front of the composition are Rudbeckia.

2. Purple flowers – probably Lavender (Lavandula) or Sage (Salvia).

3. The tall grasses in the background are probably ornamental grasses such as Miscanthus or Pennisetum.

Botanical bot

In a word, after another walk in the park, I started writing a Telegram bot that received a picture, sent it to ChatGPT with the prompt “Identify the plant in the photo” and gave an answer.

The killer feature of my bot was this banal prompt, thanks to which the identification of plants took place right there at the shooting location, making it an interesting companion for walks.

In the first days after launching the bot, when I went outside, I didn’t let go of my phone. I fed every blade of grass I encountered to my virtual Tamagotchi, which amazingly correctly commented on everything received.

It turned out that on the side of the roads I walk along every day, alfalfa, chicory, foxtail, bristle grass, thyme, purslane, tribulus, knotweed and even amaranth grow, and maple, ash, catalpa and sumac rustle overhead. The world has changed! My vocabulary too)

After playing with the bot enough, I realized that its potential is not limited to one single prompt. There are many other everyday tasks that fit into the “immutable prompt + changeable data” scheme. For example, counting the calorie content of foods eaten per day. There is already someone's AI bot that does this. How is it different from my botanical one? Promptly!

Universal bot

Here's my new killer feature – versatility. To implement it, I connected PostgreSQL to the bot to store user prompts. For prompts, standard CRUD logic is implemented.

Bot commands

Bot commands

Selecting a prompt enables its use mode, in which it will be automatically added to any request.

Now text will be added to all photos sent to the bot: "What's in the photo?"

Now the text: “What’s in the photo?” will be added to all photos sent to the bot.

You can cancel the use of the prompt and simply send a request to ChatGPT:

Request without prompt

Request without prompt

In the free version, the number of requests from one user is limited to 10, in the paid version – 50. You can pay for a monthly subscription here in the bot through YuKassa, the cost is symbolic.

At the moment, the bot does not store request history and, accordingly, does not maintain the context of the correspondence.

Help on bot commands

Help on bot commands

Launch the bot https://t.me/findplantbot and walk in the parks!)

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *