AI Agent Use Cases

Added today

44All 189

Prompt to Prepare a Shopping Cart from a Recipe Photo

The author reports that Grok Bot receives a recipe photo, organizes the ingredients and quantities, and creates a shopping list by excluding ingredients already available at home.

Grok Bot
Life & Hobbies

1–20 of 189

Dev

Updating an Old Telegram Bot to Match the New API

They used Replit Agent to update an existing bot and a card management app. Modifying the card app was straightforward, but even after several attempts, issues remained with the bot.

How it works

  1. They put the old Telegram bot code into a new bot project and asked for it to be updated for the latest API.
  2. In the separate card management app, they changed the data structure so that a single card could be placed in multiple collections.
  3. They repeated the process of reviewing the changes and making further requests.

Results

The card app was updated relatively well, but the process of migrating the old bot did not meet expectations.

Notes

For the author, modifying existing code was a more challenging task than creating a new app from scratch.

Source

AI Artisan Original post ↗

Example prompt · Replit Agent

Update the old Telegram bot to work with the currently supported API and libraries.

Input: Existing code [repository], current errors [log], version in use [version], features that must be preserved [list]. First, investigate how to run the bot and its dependencies, and reproduce the errors using sample messages. Also, record which features currently work so you can compare them after making changes.

Based on the official changelog, identify changes to authentication, message handling, and event registration, and update the code in small steps. Do not rewrite unrelated features or delete existing data, and explain which errors each change addresses.

Separate the settings for the development and production bots, and use environment variables for secrets. Prepare tests to check startup/shutdown, general messages, bot commands, invalid input, reconnection, and duplicate events.

Deliverables: Updated code, list of version changes, instructions for running and test results. Check each feature I provided one by one, and leave notes about any unresolved errors or parts that need to be checked manually. Do not replace the production bot until all tests pass.