How to Customize the Typing Indicator in a C# Azure Bot
Question details
The user wants to display a custom typing indicator message, such as 'The bot is typing', in a C# Azure Bot application and have it remove automatically.

- Product
- Azure Bot Service
- Device & OS
- not provided
- Scenario
- Developing a chatbot using C# and .NET Core and customizing the standard typing activity in Bot Framework v4.
- Observed behavior
- The developer needs guidance to replace the standard typing activity with a custom message that appears and disappears automatically as the bot processes requests.
Ensure you have access to your Bot Framework v4 source code and are familiar with C# and .NET Core development environments before modifying bot activities.
Consult Microsoft Q&A Community for Azure Bot Support
Since customizing the typing indicator requires specific Azure Bot Service development guidance, posting to the official Microsoft Q&A community is the recommended approach to get exact code snippets.
The standard `ActivityTypes.Typing` behavior is handled differently across various channels (like Teams, Slack, or Web Chat). Implementing a completely custom textual indicator often requires channel-specific workarounds.
Open your web browser and go to the official Microsoft Q&A website.
Search for and select the 'Azure Bot Service' category to ensure your programming question reaches the right Microsoft engineers and community experts.
Explain that you are using Bot Framework v4 in C# and .NET Core, and ask for code examples to send a custom message like 'The bot is typing...' and how to automatically delete or update it once the bot's processing is complete.

Implement a Custom Message Activity (Conceptual Approach)
Understand the general concept of sending and removing custom message activities in Bot Framework v4.
Focus on Your Code, Let WPS Office Handle Your Documentation
While developing sophisticated Azure bots, you likely need a reliable tool for writing technical documentation, flowcharts, and tracking project tasks. WPS Office is a lightweight, fully compatible alternative to Microsoft Office that is perfect for software developers.

Frequently Asked Questions
Can I change the default typing animation in Bot Framework web chat?
Yes, you can customize the Web Chat UI by modifying the styling options or using custom middleware in the Web Chat JavaScript initialization code to change how the typing indicator renders visually.
Why does the typing indicator persist in my Azure Bot without disappearing?
If a typing indicator doesn't disappear, it usually means the bot failed to send a follow-up message or encountered an unhandled error before completing the turn. Ensure your bot handles exceptions gracefully and always sends a concluding reply.
Does the Bot Framework v4 support typing activities on all channels?
No, support for typing indicators depends heavily on the specific channel (e.g., Microsoft Teams, Slack, Web Chat). Not all channels natively support or display the `ActivityTypes.Typing` activity.




