Varto
Хочете будувати кар’єру в Data Science та AI? Vodafone Big Data Lab відкриває новий набір —>

“Half a day instead of two hours”: how a Fullstack developer resisted token costs when creating an AI bot

Fullstack developer Vladislav Harkusha shared a case study of AI integration for an online store and talked about the difficulties that drove him «a little crazy.»

Leave a comment
“Half a day instead of two hours”: how a Fullstack developer resisted token costs when creating an AI bot

Fullstack developer Vladislav Harkusha shared a case study of AI integration for an online store and talked about the difficulties that drove him «a little crazy.»

IT specialist had long planned to create an intelligent chatbot for an online shoe store. At the initial stage, the process went smoothly: Vladislav registered on the n8n automation platform, prepared the necessary prompt, and configured the basic logic. Then, he created an intermediate server on the Next.js framework for direct access to n8n, where GPT-5mini was connected as the main language model.

However, during the testing process, the developer encountered a problem familiar to many creators of AI-based solutions.

«I almost went crazy. At first everything was fine, but then what many vibecoders talk about started happening — tokens! This whole system started eating a lot of tokens,» Vladislav shares on LinkedIn.

To optimize resource consumption, the developer initially implemented a limit of 6 messages per 30 minutes. However, a front-end solution alone proved insufficient for full protection and control.

«On the front end, this wasn’t enough, so I had to do everything „like a human“: I made a router that contacts n8n and returns the products I need, and also added a limit on the backend. Then I reduced the context and shortened the response to only what was really needed,» explains the IT specialist.

According to Vladislav, the task, which was initially planned to be completed in approximately two hours, ended up taking half a day of intensive work.

Despite the difficulties and significant timing adjustments, the developer evaluates this case positively, because thanks to architecture optimization, he managed to gain valuable practical experience and achieve the desired result.

Ukrainian IT guy created a CLI tool that simplifies front-end development with AI and saves tokens
Ukrainian IT guy created a CLI tool that simplifies front-end development with AI and saves tokens
On the topic
Ukrainian IT guy created a CLI tool that simplifies front-end development with AI and saves tokens
How to save 60% on tokens: an IT guy came up with the idea of ​​converting AI context into PNG files
How to save 60% on tokens: an IT guy came up with the idea of ​​converting AI context into PNG files
On the topic
How to save 60% on tokens: an IT guy came up with the idea of ​​converting AI context into PNG files
Developer creates Clawdmeter gadget to monitor used Claude Code tokens
Developer creates Clawdmeter gadget to monitor used Claude Code tokens
On the topic
Developer creates Clawdmeter gadget to monitor used Claude Code tokens
Read the country's main IT news in our Telegram
Read the country’s main IT news in our Telegram
On the topic
Read the country’s main IT news in our Telegram
Also Read
Roosh запускає нову освітню платформу AI HOUSE CLUB для ML/AI-спеціалістів та дата сайнтистів. Розповідаємо, як подати заявку та чому навчатимуть
Roosh запускає нову освітню платформу AI HOUSE CLUB для ML/AI-спеціалістів та дата сайнтистів. Розповідаємо, як подати заявку та чому навчатимуть
Roosh запускає нову освітню платформу AI HOUSE CLUB для ML/AI-спеціалістів та дата сайнтистів. Розповідаємо, як подати заявку та чому навчатимуть
Як нейромережі бачать вільну та незалежну Україну? Тест dev.ua
Як нейромережі бачать вільну та незалежну Україну? Тест dev.ua
Як нейромережі бачать вільну та незалежну Україну? Тест dev.ua
Нейронні мережі для генерації зображень бачать світ по-своєму, їхню логіку зрозуміти часом зовсім неможливо. Але таки хочеться. На честь Дня Незалежності України редакція dev.ua вирішила провести невеликий експеримент. Ми задали чотирьом різним нейронним мережам п’ять однакових запитів: «прапор України», «День Незалежності України», «український Крим», «перемога України» та «українці». Отриманими результатами ми ділимося з вами нижче.
У TikTok тепер можна генерувати фон за допомогою нейромережі. Ми протестували її та ділимося результатами
У TikTok тепер можна генерувати фон за допомогою нейромережі. Ми протестували її та ділимося результатами
У TikTok тепер можна генерувати фон за допомогою нейромережі. Ми протестували її та ділимося результатами
У TikTok з’явилася нова функція «Розумний фон». З її допомогою як фон для тіктоків можна підставляти згенеровані нейромережею зображення. Редакція dev.ua протестувала цю технологію і ділиться своїми враженнями.
1 comment
Які IT-спеціальності будуть потрібні в найближчі п'ять років? Ми з'ясували у голови американського стартапу ADAM Дениса Гурака
Які IT-спеціальності будуть потрібні в найближчі п'ять років? Ми з'ясували у голови американського стартапу ADAM Дениса Гурака
Які IT-спеціальності будуть потрібні в найближчі п'ять років? Ми з'ясували у голови американського стартапу ADAM Дениса Гурака

Have important news to share? Message our Telegram bot

Key events and useful links in our Telegram channel

Discussion
No comments yet.