From Q&A to Tasks: Evolving the Smart Messaging Entry Point

    This article walks through the engineering practice of turning a smart messaging entry point from a passive Q&A assistant into a task-driven conversation. It covers entry-layer design decisions, why a rich media business messaging channel is used for proactive delivery, task modeling with an event-driven state machine, and the guardrails that balance proactivity against interruption: authorization, quiet hours, and rate limiting. It also explains how Q&A and multimodal understanding coexist with tasks, how regional and compliance constraints are handled through configuration, and how to roll out with observability and staged releases. The intended audience is developers building persistent, event-driven assistants in their own products.

    1. Background: Why the Messaging Entry Point Must Move Beyond Q&A

    In most traditional messaging apps, the smart entry point is a floating button or an icon in the top-right corner. Tapping it opens a conversation built around question answering: asking for the weather, a definition, or a one-line summary. The limitation of this model is that the assistant is passive. It has no idea what the user actually cares about today, and it never reaches out when something changes.

    The newer approach turns the entry point into a task-based conversation. Instead of only answering questions, the assistant continuously tracks the user’s specific items and starts a conversation at the right moment. Recent public activity in the industry shows a messaging app replacing its original smart button with a task-oriented entry in a test build. The conversation is carried over a rich media business messaging channel, and the build supports daily proactive pushes of schedules and items to follow.

    The takeaway for developers is that the entry point is only the surface. What actually needs to be built are three capabilities: task modeling, event-driven pushing, and channel adaptation.

    2. Entry Layer Design: Turning a Button into a Conversation Container

    Reworking the entry point looks simple, but it involves three decisions.

    The first is consistency of entry placement. The original entry floated above the “start a chat” control, while the new build offers an icon in the top-right corner. Both entries must point to the same conversation container; otherwise users perceive two different assistants. A practical recommendation is to maintain a unified conversation identifier on the client, with each entry responsible only for opening the conversation and not for carrying any logic.

    The second is the lifecycle of the conversation container. A task-based conversation is long-lived. Unlike a one-off Q&A exchange that is discarded after use, it must survive application restarts, account switches, and network recovery while restoring context correctly.

    The third is the fallback path. When task capability is unavailable, for example not enabled, unsupported in the region, or with the channel unreachable, the entry should degrade to plain Q&A rather than disappear. The fallback decision can be expressed as:

    1. onEntranceClick():
    2. if taskFeatureEnabled(user) and channelAvailable():
    3. openTaskConversation()
    4. else:
    5. openLegacyChat()

    3. Channel Layer: Why a Rich Media Business Messaging Channel

    The hard part of a task-based conversation is proactive reach. In-app messages are only seen when the user opens the app, whereas task reminders must arrive even when the user is not looking at it. Rich media business messaging channels (RCS-style) provide two-way delivery, structured cards, and delivery receipts, which makes them a suitable carrier for task conversations.

    The channel layer has to handle three classes of problems:

    1. Delivery and receipts: distinguish “submitted”, “delivered”, and “read”. The task state machine advances based on these receipts.
    2. Structured messages: a task reminder is not plain text. It usually carries a title, a summary, action buttons, and deeplink parameters, which requires a unified message template protocol.
    3. Rate limiting and priority: proactive pushes must be throttled to avoid annoyance. A priority queue is recommended, where urgent items such as security alerts go first and marketing-style reminders are merged.

    A simplified message template example:

    1. {
    2. "template": "task_reminder",
    3. "title": "Parcel delivery progress",
    4. "body": "Your parcel is expected to arrive before 18:00 today",
    5. "actions": [{"label": "View details", "deeplink": "app://task/123"}],
    6. "priority": "normal"
    7. }

    4. Task Modeling: A State Machine from Events to Reminders

    The core of proactive pushing is not scheduling but events. A task assistant needs to maintain a task table that maps external events, such as order status changes, subscription expirations, and sudden weather shifts, into reminders the user can understand.

    A recommended task state machine includes: pending, triggered, delivered, acknowledged, and expired. Every state transition needs an idempotency key to prevent duplicate pushes. A sketch of the structure:

    1. Task {
    2. id, userId, type, triggerEvent, schedule, state, lastNotifiedAt, idempotencyKey
    3. }

    For triggering, the recommended approach is a dual track of “event-driven plus time-based fallback”: evaluate immediately when an event arrives, and run low-frequency polling as a safety net against lost events. A requirement such as “send a follow-up message after the parcel is delivered” is essentially two stages of the same task, and should be modeled explicitly as stage1/stage2 in the state machine rather than as two separate tasks.

    The biggest risk of proactive pushing is annoyance. Three gates must be enforced in engineering:

    • Consent gate: the user must explicitly enable task capability, with separate authorization per task type.
    • Quiet-hours gate: nights and meeting periods are silent by default, with an allowlist for urgent items.
    • Rate-limiting gate: a per-user daily cap, merging of similar tasks, and automatic throttling after consecutive unread messages.

    A “close and fall back” path should also be preserved. Once the user disables task capability, the entry degrades to Q&A, historical tasks stop pushing, and their records remain queryable.

    6. Coexistence of Multimodal and General-Knowledge Q&A

    Going task-oriented does not mean abandoning Q&A. Weather, general knowledge, and image and file understanding should remain in the same conversation, routed by intent recognition: a task intent goes to the task state machine, while a Q&A intent goes to the retrieval and generation pipeline. When images and files are uploaded, validate type and size first, then enter the parsing flow, so that large files do not block the conversation.

    7. Regional and Compliance Constraints

    Task capability is usually rolled out gradually by region and must meet local messaging channel and privacy compliance requirements. In engineering terms, “regional switch, capability switch, and channel availability” should be combined conditions delivered from a configuration center rather than hardcoded. All proactive push content must be auditable, retaining the template version and the trigger reason for traceability.

    8. Observability and Gradual Rollout

    The recommended rollout has three stages: internal accounts, a small percentage, then full traffic. Core metrics include entry click-through rate, task enablement rate, push delivery rate, acknowledgment rate, disable rate, and complaint rate. Logging services and monitoring alerts should cover channel receipt anomalies and a stalled state machine. A container platform hosts the stateless push gateway, a message queue buffers event peaks, and object storage holds images and files.

    9. Conclusion

    Making the messaging entry point task-oriented is essentially upgrading a passive Q&A assistant into an event-driven, continuous assistant. Developers need to build a unified entry, channel adaptation, a task state machine, rate limiting and consent, and an observability system at the same time. If an enterprise wants to validate this pattern quickly in its own product, it can build a minimal closed loop with general capabilities such as the message queue, logging service, and monitoring alerts from Baidu AI Cloud, then gradually expand task types and regional coverage.