# WebXDC app reading incoming messages \[and provides local bot services\]

**URL:** <https://forum.delta.chat/t/webxdc-app-reading-incoming-messages-and-provides-local-bot-services/5311>\
**Category:** Mini Apps\
**Tags:** webxdc-api-future\
**Created:** [May 27, 2026, 8:44am UTC](https://forum.delta.chat/t/webxdc-app-reading-incoming-messages-and-provides-local-bot-services/5311 "2026-05-27T08:44:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthias](https://forum.delta.chat/letter_avatar_proxy/v4/letter/m/cdc98d/32.png) [@Matthias](https://forum.delta.chat/u/Matthias)\
**Post date:** [May 27, 2026, 8:44am UTC](https://forum.delta.chat/t/webxdc-app-reading-incoming-messages-and-provides-local-bot-services/5311/1 "2026-05-27T08:44:04Z")

</div>

Hi,

I am a heavy user of WebXDC apps and have built several for my home automation system. These currently act as GUIs for bot-based services, communicating with backend bots over chat messages.

I would now like to implement a WebXDC app that _provides_ services and responds to commands locally on my phone — effectively a bot, but running inside the app rather than on a server. Example commands:

- `/translate WORD`
- `/awaymessage "Matthias is not at the phone right now"`

The blocker: apps are currently only activated when the user taps the app or an incoming message. There is no mechanism for an app to be activated by, or react to, incoming messages on its own.

## Feature Request

Allow apps to listen for incoming messages and be activated when a matching message arrives. Matching could be done via commands, regex patterns, or a catch-all. The app would be woken from a suspended state, process the message, and (optionally) respond.

## Lighter Alternative

A smaller change would be to allow apps, once manually started, to read past chat messages. I am unsure whether this delivers enough value to justify the change.

## Privacy Considerations

Both variants raise privacy concerns: an app with access to messages could retain them and attempt exfiltration. This needs explicit consideration in the permission and sandboxing model before either feature is exposed.

Regards,  
Matthias

---

<div class="post-metadata">

**Author:** ![ian](https://forum.delta.chat/user_avatar/forum.delta.chat/ian/32/3164_2.png) [@ian](https://forum.delta.chat/u/ian)\
**Post date:** [May 27, 2026, 11:38am UTC](https://forum.delta.chat/t/webxdc-app-reading-incoming-messages-and-provides-local-bot-services/5311/2 "2026-05-27T11:38:11Z")

</div>

Duplicate of:

> [@Running bots inside deltachat](https://support.delta.chat/t/running-bots-inside-deltachat/3701/5):
>
> Many existing bots and proposals could be ported that are delay-tolerant and need neither Internet access nor relaying everything between a large number of subscribers, such as: moderated forums (PixelSocial, DC-Confluence, DC-Community) multi-player games (Deltaland, others where a game master is needed such as Werewolf, Mafia, Amongus and Among-sus) webxdc gallery (xstore): share apps (and client side bots) with each other Public Bots index: send the contacts and description of all known bot…

Related:

> [@Draft-editing apps \[plugins interacting with your text composer\]](https://support.delta.chat/t/draft-editing-apps-plugins-interacting-with-your-text-composer/4840/4):
>
> Supporting to “dock” webxdc and allowing access to DC UX & native API is a recurring idea. I can’t put my finger on which topic covers it the best, but this comes to mind:

> [@I see huge untapped potential for webxdc apps if some improvements are made](https://support.delta.chat/t/i-see-huge-untapped-potential-for-webxdc-apps-if-some-improvements-are-made/4583/2):
>
> For the first, I think the Resend button can already bundle all state updates to the recipient sleepy laptop. The calendar app itself already supports exporting & importing to JSON, so you may as well have that file in your Saved Messages before you leave. For the second, I think client side plugins would also cover this, where a “docked” webxdc could have access to API to iterate through multiple chats, read and write messages there, wexdc state or more ideally communicate with other webxdc …

> [@Is there a "Reminders" bot?](https://support.delta.chat/t/is-there-a-reminders-bot/4724/2):
>
> I haven’t seen such so far. A similar issue: It would be advantageous if we had more event driven bots, such as a weather bot proactively notifying us about a storm approaching so we could close the windows. Also imagine a game matchmaking bot that observed the presence of people in groups and propose to have a match when it sees a sufficient number of people who had played the given game in the past are around at the same time. A related question is how to schedule actions and messages in ge…
