Library / AI Agents & Assistants
AI Agents & Assistants
Design UI screens from chat with Google Stitch, Gemini, Telegram and Sheets
When a chat message arrives, it runs an AI agent with Google Gemini and Perplexity using Chat, Google Sheets, Perplexity, Telegram.
What it does
## 09-05-07 stitch ui design bot with project memory ### How it works - The chat panel and a Telegram bot both feed one normalized pipeline, so the same bot works on either channel. - Empty or tiny messages get a friendly hint right away and never reach the agent. - A Google Sheets store remembers each user; returning visitors get their past request injected back into the prompt so their Stitch project continues naturally. - A Gemini agent drives six Google Stitch MCP tools to create projects, list projects and screens, and generate UI from plain language, with web research available for follow-up facts. - Answers are converted to Telegram-safe HTML for the bot and kept as markdown in the chat panel. - Errors are caught, reported to an admin chat, and written to a log sheet. ### Setup - Create a Google Sheets file with two tabs: ProjectMemory (headers session_id, channel, last_prompt, logged_at) and ErrorLog (headers session_id, error_message, logged_at). - Set the sheet URL in STITCH_PROJECT_MEMO_SHEET and the admin chat id in ADMIN_TELEGRAM_CHAT_ID. - Add an HTTP Header Auth credential with the header X-Goog-Api-Key and your Stitch API key, then attach it to the six MCP tool nodes. - Add Google Gemini, Perplexity, and Telegram bot credentials to their nodes. - Activate the workflow and ask for a screen, for example: build a checkout page for a coffee shop. ### Customization - Change the hint text, or remove the web research tool when search is not needed.
The steps
- Chat channel trigger
- Telegram channel trigger
- Normalize incoming message
- Validate request depth
- Load project memory
- Merge context into prompt
- Stitch UI Designer
- Gemini design model
- Per-user conversation memory
- Create project tool
- Get project tool
- List projects tool
- List screens tool
- Get screen tool
25 steps in total.
Similar automations
AI Agents & AssistantsChat with Perplexity Research Through an OpenAI Agent4 stepsAI Agents & AssistantsCreate UGC ad videos from Telegram briefs with OpenAI, Perplexity, and Kie AI33 stepsAI Agents & AssistantsRun a Marketing Team Agent with Gemini and Perplexity14 stepsReports, Analytics & DashboardsDaily AI News Digest on Telegram with Perplexity6 steps