Bitrix24 Covork/Code built an expense report app from a single prompt
Expense reports are often handled in three places at once: a form, a spreadsheet, and reminders in chat. Igor Roslyakov replaced that combination with a Bitrix24 app built by the Covork/Code AI agent from a detailed prompt. An employee enters expenses and receipts, a manager approves them, accounting accepts them, and a bot sends notifications. For a typical internal process, a good technical specification is enough, without a developer team.
AI-processed from Habr AI; edited by Hamidun News
A familiar scene: an employee fills out an expense report in Google Forms, the data lands in a spreadsheet, and the manager gets a "could you take a look, please" message in chat. Every correction and approval means jumping between services. Ready-made solutions exist in the Bitrix24 Marketplace, but they are built for other companies' processes, and it is usually unclear how a third-party app actually works. In a series of articles for the Bitrix24 DevRel team, technical writer Igor Roslyakov showed a different approach: describe the process in words and have an AI agent do the build.
What the agent is and why it is needed
Covork/Code is a desktop application with an AI agent and two modes. "Covork" works with portal data, and "Code" writes applications. The agent calls the Bitrix24 REST API, so it knows about employees, clients, and deals if they exist on the portal. The finished app can be deployed on Bitrix24 Vibecode infrastructure: there is no need to rent a web server or issue authorization keys. Before publication, the code goes through a security check, and the portal owner controls publication and the access granted.
The example process is simple. A company gave an employee 50,000 rubles for a business trip, he spent 35,000, and he must attach receipts and return 15,000. If, however, he paid for work expenses with his own money, the company reimburses them. The app calculates the totals, creates a record in a Bitrix24 smart process, and notifies participants through a bot.
How the prompt is built
The most useful part of the material is the approach to task setup. The author did not write the prompt himself: he gave the agent a short specification, and the agent asked clarifying questions and drafted a large document. It has ten sections, and these are the parts that matter to an engineer.
Business logic is stated explicitly. There are two scenarios ("Advance" and "Reimbursement"), expense lines with categories and files, and the statuses "Draft," "Pending approval," "Needs revision," "Approved," "Being corrected," "Rejected," and "Accepted for accounting." For each status transition, the document specifies who acts and whether a mandatory comment is required.
Calculations are moved to the server. Amounts are stored as whole numbers in kopecks to avoid rounding errors. The balance to return equals the advance minus what was spent, and an overspend is calculated in the opposite direction. The formulas are covered by tests using the standard node:test module.
Permissions are checked on the server. Identity is taken only from gateway headers, not from the request body. An employee sees their own reports, an approver sees the ones assigned to them, and accounting sees all of them. A foreign report id returns 403, not an empty list.
Data is separated. The register and statuses live in a smart process, while expense details, history, and file metadata live in a JSON file in /data. The status is always read from the CRM so the sources do not diverge.
There are also firm limits on the agent's inventiveness: do not invent REST paths but take them from the connected skills; do not add 1C, accounting entries, or multi-stage approvals; keep the solution compact. The "what not to do" section protects against the project growing out of control.
Practical conclusions and limitations
The app works, but embedding it in the portal requires a manual step: in the platform's admin panel, an administrator binds placements (a left-menu item and a tab in the report card) and allows the frame. The app does not do this by itself.
The limitations are also visible. This is a demonstration for the article, not an accounting system: it does not transfer money and does not export anything to 1C. Details are stored in a file rather than a database, which keeps things compact but scales poorly to large volumes. The portal can take tens of seconds to respond, so the prompt includes a 180-second timeout and an honest progress indicator.
For teams building internal tools with AI agents, the example shows a working scheme. First, the agent clarifies requirements and writes a detailed specification. Then it generates code from that specification, and a person checks access rights, calculations, and edge cases. The more precisely the prompt describes roles, statuses, and prohibitions, the less the agent guesses on its own. For small business processes such as reports, requests, and approvals, this approach lets a company get its own app faster than it could find and adapt someone else's.
- Nov 26, 2026A Fake Paper Written with Free ChatGPT and Gemini Was Caught by 24 Invented References
- Nov 26, 2026Yandex Direct Brings Back Change History, But Without Export: Gemini Builds the Table from Screenshots
- Nov 26, 2026FS-XML: How a Browser AI Chat Edits Your Project Code in One Click, With No Token Bills
- Nov 26, 2026OpenAI Pilots Private Inference: Business Queries Without Data Access
Key Questions Answered
What the agent is and why it is needed?
Covork/Code is a desktop application with an AI agent and two modes. "Covork" works with portal data, and "Code" writes applications. The agent calls the Bitrix24 REST API, so it knows about employees, clients, and deals if they exist on the portal. The finished app can be deployed on Bitrix24 Vibecode infrastructure: there is no need to rent a web server or issue authorization keys. Before publication, the code goes through a security check, and the portal owner controls publication and the access granted.
How the prompt is built?
The most useful part of the material is the approach to task setup. The author did not write the prompt himself: he gave the agent a short specification, and the agent asked clarifying questions and drafted a large document. It has ten sections, and these are the parts that matter to an engineer. Business logic is stated explicitly.
What are the key details on Practical conclusions and limitations?
The app works, but embedding it in the portal requires a manual step: in the platform's admin panel, an administrator binds placements (a left-menu item and a tab in the report card) and allows the frame. The app does not do this by itself. The limitations are also visible. This is a demonstration for the article, not an accounting system: it does not transfer money and does not export anything to 1C.
Test Frontier LLMs & Autonomous Agents in One Workspace
Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.
Daily 60-sec AI Voice Brief + Weekly Production AI Agent Playbook
Listen to a 60-second AI news brief every morning and get a weekly hands-on playbook for shipping AI agents to production — tools, MCP servers and patterns that work. Curated by Jemal Hamidun, Head of AI at Alpina Digital.
