Refinement of the finished n8n workflow: Worksection + OpenAI + Telegram (buttons are not working)
There is a ready n8n workflow that:
- Checks comments in Worksection for the last 3 days on a schedule.
- If there are new comments, generates a client update via OpenAI.
- Sends the update to the PM in Telegram for approval.
- The PM has buttons:
Confirm and send to client, Revise, Copy, Reject.
It is necessary to refine the existing workflow, not to create a new one from scratch. The JSON workflow will be provided.
1. Refine Telegram buttons
"Confirm and send to client"
When pressed:
- the final text for the client is sent to the client;
- without service blocks, buttons, project name, technical information;
- the message goes to
client_chat_idspecified in the configuration; - a confirmation appears in the PM chat;
- repeated pressing should not duplicate the sending.
"Revise"
When pressed:
- the bot asks the PM to write a revision response;
- the PM can send the revision as text or voice;
- the voice must be recognized as text;
- OpenAI regenerates the update considering the revision;
- the PM receives a new version with the same buttons;
- revision can be done several times.
"Copy"
When pressed:
- the bot sends the PM a separate message with only the final client text;
- without service information and buttons.
"Reject"
When pressed:
- the draft receives the status of rejected;
- nothing is sent to the client;
- a confirmation is shown in the PM chat;
- old buttons should not allow sending the rejected draft.
2. Add reminder logic if there is no update in the CRM Worksection
If there have been no new substantial comments in Worksection for the last 3 days, the workflow should not just finish.
First reminder in Worksection
The bot must add a comment to the corresponding task in Worksection.
Example text:
Serhiy, hello.
Unfortunately, there has been no new update on this task for the last 3 days.
Please write in this task what has been done in the last 3 days within the project, so I can take this information into account, analyze it, and prepare a regular 3-day update for the client.
Project: "..."
Worksection task: {{task_id}}
Repeated reminder in Telegram
If after the first reminder in Worksection there are still no new comments, on the next run the bot should write to the internal Telegram group of the specialist.
Example text:
"tag dude", hello.
This is the electronic assistant of the project managers of Solarweb.
I remind you that in Worksection every 3 days it is necessary to update the information on the project: what actions have been performed, what is currently in progress, what results, risks, or next steps are there.
This is needed for preparing regular 3-day updates for clients.
Project: "..."
Direction: Targeted advertising
Worksection task: {{worksection_task_url}}
Please go to Worksection and write what has been done in the last days.
The Telegram message should go not to the client and not to the PM, but to a separate internal chat specified in the configuration.
3. Spam protection
It is necessary to maintain the state in staticData so that the bot does not duplicate reminders.
Logic:
- If there is no update and there has not been a reminder during this period, write in Worksection.
- If a reminder has already been in Worksection, but there are still no comments, write in Telegram.
- Telegram reminders no more than once a day per project.
- If the specialist adds a new comment, the reminder state resets.
- Then the workflow works as standard: generates an update and sends it to the PM for approval.
4. What needs to be considered technically
It is necessary to check and refine:
callback_queryfrom Telegram buttons;- saving drafts in
staticData.pmDrafts; - linking
draft_idwith a specific project; - sending only client text;
- processing text and voice revisions;
- re-displaying buttons after revision;
- protection against repeated sending;
- working with long Telegram messages;
- adding a comment in Worksection via API;
- Telegram reminders to the specialist;
- logging understandable statuses;
- so that API keys or tokens do not appear in the logs.
5. Configuration
It is necessary to add or foresee fields:
specialist_name: 'Serhiy',
specialist_telegram_username: 'dog serhiy',
specialist_reminder_chat_id: '-100...',
worksection_task_url: 'https://"000".worksection.com/...',
reminder_enabled: true,
worksection_reminder_enabled: true,
telegram_reminder_enabled: true
If any field is missing, the workflow should not crash but should return an understandable status.
6. Testing
It is necessary to really test the workflow and show the result in test or real Telegram chats.
Show:
- The PM receives an update with buttons.
- "Confirm" sends only the client text to the client.
- "Revise" works with text revision.
- "Revise" works with voice revision.
- "Copy" sends only the client text.
- "Reject" does not send text to the client.
- If there are no comments in Worksection, the bot writes a reminder in Worksection.
- If there are still no comments, the bot writes a reminder in Telegram.
- The bot does not spam with identical reminders.
- After a new comment appears, the bot generates an update.
7. What should be the output
The performer must provide:
- Updated JSON workflow.
- Brief description of changes.
- Instructions for env variables or credentials.
- Explanation of which fields to change for other projects.
- Screenshots or videos of testing.
Acceptance criteria
I import the workflow, substitute my credentials/env variables, and get ready logic without manual refinement:
- the update is generated from Worksection;
- the PM approves, revises, copies, or rejects the text;
- only the approved client text goes to the client;
- if there is no update in Worksection, the bot reminds the specialist;
- duplicate sends and spam reminders are excluded.
Applications 1
-
I will refine your existing n8n workflow by integrating reliable Telegram Webhooks logic for interactive buttons, a voice editing transcription system (via OpenAI Whisper), and a two-level anti-spam reminder mechanism for specialists with state tracking in staticData.
Since staticData in n8n only retains its state during successful system execution (Production execution) and has volume limitations, have you considered the option of moving unique draft_ids, approval statuses, and timestamps of the last reminders to a lightweight database (e.g., Supabase or Redis) to avoid the risk of overwriting states when running workflows in parallel across multiple projects?
Budget and timelines will be discussed in private correspondence.
Similar completed project: В модулі OpenCart виправити 5 проблем повязаних з Facebook API
-
Pavlo, greetings! I have already worked with Solarweb and the Come-For parser, so I am well acquainted with the structure. I will refine your workflow: I will fix the Telegram buttons, add reminder logic in Worksection and Telegram, as well as protection against duplicates. Everything will be based on your JSON, without rewriting from scratch. The cost is 4,000 UAH. The deadline is 4 days after receiving the file and access.
-
354 I don't know, I would build everything from scratch. The technical specification is high-quality, clear, it's pleasant to deal with such a client, I'm sure. So I will build it from scratch, it will work as the client needs.
-
2065 32 0 Good day 👋
I have reviewed the task — there is already a good level of automation here, and it is clear that the workflow is almost ready for production. The problem lies more in the logic of states, callback handling, and the stability of scenarios in n8n.
I can refine the existing workflow without rewriting it from scratch:
• I will fix the Telegram callback_query and the operation of inline buttons;
• I will implement correct logic for Confirm / Regenerate / Copy / Reject;
• I will add protection against resending;
• I will implement state saving through staticData;
… • I will set up a regeneration loop via OpenAI;
• I will add support for voice edits PM → speech-to-text;
• I will implement a reminder flow for Worksection + Telegram;
• I will create anti-spam logic for projects;
• I will check the handling of long messages in Telegram;
• I will tidy up the logs and the security of tokens.
I can also optimize the workflow itself to make it:
— more stable;
— easier to maintain;
— free of "hangs" and duplications;
— ready for scaling to other projects.
I have experience working with:
• n8n
• Telegram Bot API
• OpenAI API
• Worksection API
• state management / automation logic
Message me privately — I will take a look at your JSON workflow and immediately tell you where the problem lies and how best to implement it 🚀
-
2116 20 0 Hello.
The scope is clear — three blocks: finalize the Telegram buttons in the existing workflow (Confirm, Redo, Copy, Reject), add reminder logic in Worksection and the internal chat when there are no updates, deduplicate via staticData to avoid duplicate reminders.
Regarding the buttons — I will implement them through separate Telegram CallbackQuery with unique callback_data for each action plus a processed flag in staticData by message_id, so that repeated presses do not duplicate the sending. For the redo with voice, I will catch the voice message from the PM, convert it to text using the Whisper API, and add it to the context for regeneration through OpenAI with the same system prompt as in the existing workflow.
For reminders — check via staticData with a key of the type reminder per task_id per period with the value of worksection_sent_at or telegram_sent_at. On the first run without an update, we write in Worksection, on the next one (if there are also no comments) in the internal Telegram group. The period resets when a new substantive comment appears in Worksection.
Regarding spam protection — staticData in n8n is suitable, but if you want it to be more reliable upon instance restart, you can duplicate it in a separate micro-DB (SQLite or Redis), depending on the infrastructure where n8n is running.
…
One point that will affect the timeline — whether there is currently a working self-hosted n8n or a cloud version, and access to the Worksection API (a token is needed plus a list of task_id we are working with). As soon as I receive the JSON and access — I will deploy it locally in a day, reproduce the current flow, and then follow the scope.
-
4611 52 1 Good evening, I am a Python developer and I also work with automation on n8n. I have experience working with n8n and can complete your task according to the specifications. I am ready to start immediately.
Feel free to write - we can discuss the details.
-
432 1 0 Hello! I am ready to fix your workflow and make the TG buttons work smoothly. I will debug the callback_query and staticData processing to eliminate duplicate submissions and clearly return only clean text to the client.
I will implement two-step reminders via the Worksection API and TG chat with spam protection once a day. For the "Redo" button, I will connect Whisper for voice and a cyclic request to OpenAI.
I will provide a verified JSON, test screenshots, and instructions for scaling.
I am ready to discuss the details and start the execution.
-
219 Pavel, hello! I looked at the technical specifications and the attached JSON workflow. There is no need to rewrite from scratch: there is already a base — Worksection/OpenAI node + a separate Telegram callback handler.
What I see: pmDrafts are already saved in staticData, the approve/rewrite/copy/reject buttons are in place, and voice rewrite through Whisper is also partially available. The main areas for improvement are the idempotency of the buttons, blocking old drafts, Worksection/Telegram reminders, and the state machine against duplicates.
I will do the following:
- approve sends only clean text to the client and does not duplicate;
- reject blocks old buttons;
- copy/rewrite work without service information;
- I will add a Worksection reminder in the absence of comments;
… - I will add a repeated Telegram reminder to the specialist;
- I will save the reminder state in staticData;
- I will add a configuration for the specialist's fields and fallback statuses;
- I will test the scenarios and provide the updated JSON + instructions.
Deadline: 4 days. I will work on top of the current workflow, without rewriting from scratch.
Question: do the callback buttons not reach the handler at all, or does the callback come but the logic inside breaks?
-
1495 13 0 Hello! I can implement it, please write to me privately to discuss all the project details. I hope for cooperation!
-
726 9 1 Hello! I have reviewed your project and am ready to start working immediately. I guarantee excellent quality and promptness.
-
162 Good day! I have analyzed the technical specifications and your JSON file, and I am ready to refine your existing script to meet the new requirements.
What I will specifically do:
Telegram buttons: I will implement the removal of buttons after clicking (to prevent duplicates) and clear the text of service blocks before sending it to the client.
Voice edits: I will integrate the uploading of audio files and their transcription via OpenAI Whisper (whisper-1) directly within the JS code of n8n.
Smart reminders: I will set up the final automation in staticData (the first ping — via the Worksection API add_comment, the repeat after 24 hours — in the specialist's internal Telegram).
… Configuration: I will add all new variables (specialist_name, chats, limits) to your current project array. API keys will remain in $env.
-
937 5 0 1 Hello! I am Volodymyr, the founder of the engineering agency Vaysed. Here is a brief technical plan on how we will rewrite and optimize your current n8n workflow:
1. State Management
We will utilize the built-in method $getStaticData() within n8n. The script will start to "remember" the history of its previous runs. This will allow for reliable spam protection: the bot will check the saved status and send reminders in Worksection or Telegram strictly once during a specified period, resetting the counter after a comment appears.
2. Isolated Configuration
All hardcoded data (chat IDs, specialist names, task links) will be moved to a single starting configuration node (Set node) or environment variables. You will be able to instantly scale this script to new projects by simply changing the input data, without touching the internal logic of the bot at all.
3. Telegram Button Routing
We will completely rewrite the callback_query handling. When "Confirm" is pressed, the script will strictly filter the JSON object, separating the service information, and will send only the clean final text to the client chat. When "Reject" is pressed, the system will cancel the draft status and deactivate the old buttons.
4. Regeneration Module with Audio Processing
For the "Redo" button, we will set up a waiting node for a response from the PM. If it is a voice message, we will automatically pass it through OpenAI Whisper for accurate transcription. The recognized text will be integrated as an additional prompt and a request will be sent to the LLM for update regeneration.
… 5. Fault-Tolerant Work with the Worksection API
All API calls (checking the latest comments and creating new reminders) will be configured with error handling in mind. If any field is missing, the workflow will not "fail," but will switch to a backup logging branch, while access tokens will never be displayed in open execution logs.
We have already successfully implemented similar fault-tolerant routing and work with complex states (State Machine) in our project RESTART 2026. We have refined deep two-way integration with third-party system APIs in the Prudbay Clothes Support ecosystem, and the mechanisms for preventing duplicate notifications are the foundation of our monitoring system Lumos.
Here is a link to our website, where portfolios and descriptions of implemented infrastructure solutions are collected: https://vaysed.me/
There you can learn more about the mentioned projects. I look forward to your message to agree on the details and start working on the optimization.
-
6589 28 0 The task is clear: refine the existing n8n workflow — fix the Telegram buttons (confirm/rework/copy/reject), add voice recognition through OpenAI Whisper for "Rework", implement protection against duplication, and set up reminder logic in Worksection and Telegram when there are no comments.
I work with n8n, Telegram Bot API, and OpenAI — that's the stack. You will provide the JSON workflow, and I will figure it out and deliver it without rewriting from scratch.
Approximately 4–5 days after receiving the JSON and access.
What is the main issue with the buttons right now — do they not respond at all, or is the callback received but the logic does not trigger?
-
1362 3 0 Hello. I see that the workflow is already working with Worksection, OpenAI, and Telegram - we just need to refine the inline buttons and add the reminder logic. The buttons "Confirm", "Redo", "Copy", "Reject" are standard callback handlers in n8n, but there are many nuances: deduplication of sending, voice recognition, saving the draft status between iterations. I did something similar for a PM bot on aiogram - there was also a chain editing of content with voice edits through the Whisper API. Question: are the voice edits Telegram voice messages, or are you using some other service for recognition?
Current freelance projects in the category AI & Machine Learning
Automatic posting of stories on InstagramGood day, I need help with setting up automatic posting of stories on Instagram. There are already stories in the Instagram archive that have been published, and they need to be reposted. AI & Machine Learning, Bot Development ∙ 1 day 6 hours back ∙ 23 proposals |
Creation of an AI assistant for communication with ClientsIt is necessary to create an AI assistant for communication with Clients. The chat window will be located on our website, followed by communication with the bot. Questions about products, settings, capabilities, etc. In cases where the information is unknown or the request can… AI & Machine Learning, AI Consulting ∙ 2 days 2 hours back ∙ 34 proposals |
I am looking for a video editor who creates AI videos.Creation of AI videos for dentists and other experts Objective: To create short vertical videos for Instagram Reels, Facebook Reels, TikTok, and YouTube Shorts that explain complex topics in simple language and hold the viewer's attention through a combination of AI animation… AI & Machine Learning ∙ 2 days 9 hours back ∙ 2 proposals |
I am looking for a mentor/teacher for ComfyUI for online learning (working through RunPod)
16 USD
Hello. I am looking for a practicing specialist and mentor who can help me master working with ComfyUI. The main feature of my request is that the work will be done entirely in the cloud, without downloading the program to a local computer. I plan to rent a graphics card through… AI & Machine Learning ∙ 2 days 20 hours back ∙ 1 proposal |
AI agent of sports nutrition technologistThe agent helps develop formulations for new sports nutrition products — protein bars, proteins, pre-workouts, isotonic drinks, bars, etc. The main feature: the agent knows the legislation of different countries and automatically takes it into account when creating the… AI & Machine Learning, Web Programming ∙ 2 days 20 hours back ∙ 63 proposals |