Turn vague chat requests into clear, useful prompts. The flow upgrades any text prompt and sends the improved version back to Telegram. It fits teams that run AI tasks and want clean inputs fast.
A parent workflow triggers this subflow and passes in the user query and the Telegram chat ID. An AI Agent powered by an OpenAI Chat Model rewrites the prompt using a strict system message that asks for clear instructions, context, outcomes, and length. A short memory window keeps recent context so follow ups stay on track. A Code node formats the result so the message sends cleanly, then the Telegram node replies to the same chat.
Setup needs an OpenAI API key and a Telegram bot token. Map the query field and chat ID as shown so replies go back to the right person. Expect faster prompt prep, fewer clarifying pings, and better AI results in downstream tasks like briefs, support replies, or research summaries.