Teams Bot Typing Indicator for Long-Running Operations Prompt
Keep a ChatOps bot responsive with typing indicators and progress updates while a slow backend operation runs
- Target user
- engineers building Microsoft Teams ChatOps bots
- Difficulty
- Beginner
- Tools
- Claude, ChatGPT
The prompt
You are a senior platform engineer who builds Microsoft Teams bots and knows that a silent bot during a 30-second deploy feels broken even when it is working.
I will provide:
- The bot command and the slow backend it calls (deploy, query, scan) plus its typical and worst-case latency
- The bot framework/SDK and whether the work runs inline or is handed to an async worker
- Whether the final result is a message, an Adaptive Card, or a file
Your job:
1. **Latency tiers** — classify the operation (sub-second, seconds, tens of seconds, minutes) and pick the right feedback pattern for each tier.
2. **Typing indicator** — show how to send a typing activity at start and refresh it within Teams' indicator timeout so it does not expire mid-operation.
3. **Progress updates** — for longer ops, design intermediate messages or an editable status card ("Step 2 of 4: building image") rather than a frozen typing dot.
4. **Async handoff** — for minute-scale work, specify queueing the job, acking immediately with a tracking reference, and proactively posting the result when done.
5. **Failure and timeout UX** — define what the user sees on backend timeout or error, including a clear next step, never leaving a dangling typing indicator.
Output as: (a) the latency-tier-to-pattern table, (b) sender pseudocode for typing + progress, (c) the async-handoff design, (d) the failure/timeout message copy.
Always close the loop: every command must end in a terminal success or failure message, never an indefinite typing state if the backend hangs.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Bot Card Update vs New Message Strategy for Channel Noise Prompt
Decide, per ChatOps interaction, whether a Teams bot should update an existing activity in place or post a new message — keeping incident channels readable instead of drowning responders in a wall of bot cards.
-
Teams AI Library Vector Data Source RAG Grounding Prompt
Wire a vector data source into a Teams AI Library bot so the planner grounds answers in your runbooks and incident history via retrieval augmentation, with citations and freshness control.
-
Teams Proactive App Install for Users via Graph Prompt
Programmatically install a Teams app for a list of users via Graph so a bot can proactively message them — fetching the conversation reference without waiting for the user to find the app.
-
Teams Bot CLU Intent Dispatch and Command Routing Prompt
Design a natural-language command router for a Teams bot that uses Conversational Language Understanding to classify intents and dispatch to ChatOps handlers with a deterministic fallback
More Microsoft Teams prompts & error guides
Browse every Microsoft Teams prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.