Notification management

Updated at:
Copy as MD

Wanxiaozhi notification configuration sends a reminder when your application receives a new order, a new booking, or a lead submission, so that you can follow up in time. Reminders are delivered through SMS and email. This topic describes how to manage notification scenarios and how to register your own sending service.

Limits

Item

Description

SMS content

SMS content cannot be customized. Default notification content: "Your Wanxiaozhi application has a new data change. Sign in to the backend for details."

Sending frequency

For a custom scenario, you can set the minimum sending interval (seconds) and the daily sending limit (messages). For the verification codes of a built-in scenario, you can set the minimum interval (seconds) and the hourly sending limit (messages) to prevent excessive notifications.

Notification Scenes

Built-in scenarios

Built-in scenarios manage access authentication for the users of your application. They provide mobile-number registration/sign-in and email registration/sign-in, two authentication methods for user access to your application.

Turn on a built-in scenario

When you describe a "user sign-in" scenario in the Wanxiaozhi conversation window, the system automatically turns on the authentication configuration and generates the corresponding verification-code sending scenario in notification configuration. Perform the following steps:

  1. Trigger the configuration: In the Wanxiaozhi conversation window, describe the "user sign-in" scenario that your application needs.

    For example: "Turn on the user sign-in feature for me. I need support formobile number and email registration and sign-in."
  2. Automatic activation: After the system recognizes your requirement, it automatically turns on and configures the corresponding authentication feature.

    The corresponding verification-code sending scenario then appears in the scenario list on the Notification Management page.

User data management

After a built-in scenario is turned on, the system automatically generates a user profile table to manage registered user data.

  • Where to view: In your application, choose Manage > Database Management > User profile table to view user information.

  • What you can do: On this page, you can view the information and status of all registered users in one place.

Manage built-in scenarios

In the scenario list, you can enable or disable a built-in scenario and edit its verification-code parameters. The following rules apply to built-in scenarios:

  • A built-in scenario is disabled by default, and notifications are sent only after the scenario is turned on. The system turns on a built-in scenario when you describe the corresponding requirement in the Wanxiaozhi conversation window.

  • For an enabled built-in scenario, you can adjust the minimum verification-code interval and the hourly sending limit. System parameters such as the SMS provider and the signature name cannot be adjusted.

Note

Built-in scenarios cannot be deleted.

Add a notification scenario

To receive a notification automatically when data changes, such as when a new customer booking or a new order is created, add a custom notification scenario.

Note

Before you add a notification scenario, make sure that you have created a data table and fields in Database management (that is, you have created a custom data table in Wanxiaozhi). A notification scenario listens for changes in data tables to trigger notifications.

  1. Log on to the Wanxiaozhi console, go to your target application, and then choose Manage > Notifications.

  2. Click Add Scene at the top of the page. The three-step configuration wizard opens.

  3. Configure the basic information:

    1. Enter a Scene Name, such as "New order notification".

    2. Enter a Scene Description to briefly describe what the scenario is used for.

    3. Select the Notification channels. You can select SMS and Email.

  4. Configure the sending frequency limits: set the sending frequency for SMS and email separately.

    • Minimum email interval (seconds): the minimum interval between two notifications.

    • Daily email limit: the maximum number of notifications sent per day.

    Click Next.

  5. Configure the trigger conditions and the message content:

    1. Configure the Trigger conditions:

      • Data Table: select the data table that you want to monitor from the drop-down list.

      • Trigger events: select the event types that trigger a notification. You can select multiple event types, including insert (INSERT), update (UPDATE), and delete (DELETE).

    2. Configure the Email notification fields:

      • Select the fields that you want to display when data changes. You can select up to 10 fields for email. SMS does not support custom fields.

      • Default SMS notification content: "Your Wanxiaozhi application has a new data change. Sign in to the backend for details."

      • The field list loads the available fields only after you select a data table to listen to.

    3. View the SMS/email preview template to confirm the message content format.

      Click Next.

  6. Configure the recipients:

    1. Click Add mobile number or Add Email, and then enter the mobile number or email address that receives notifications.

    2. The system sends a verification code to the mobile number or email address. Enter the verification code to complete verification.

    3. After you configure the recipients, click Save to save the scenario configuration.

    Important

    An added mobile number or email address takes effect only after it passes verification-code verification. An unverified mobile number or email address cannot receive notifications.

After the configuration is saved, the new scenario appears in the scenario list with the trigger method "Data change".

Manage notification scenarios

For a scenario whose status is "Enabled", click Edit in the Actions column to reconfigure settings such as the sending frequency and the trigger conditions.

Notification service registration

Notification service registration specifies which service sends notifications. By default, the system provides Wanxiaozhi official SMS and Wanxiaozhi official email. Official services are ready to use after activation, support all scenarios, and require no configuration. To use your own service, register Alibaba Cloud SMS or Custom mailbox (SMTP). After the service is registered and passes the test, select the service that sends notifications in Notification Scenes.

Note

Your own sending service is an Advanced feature. You can configure it only after you publish the website and activate the Advanced plan.

Log on to the Wanxiaozhi console, go to your target application, choose Manage > Notifications, and then click the Service Integration tab. The page is divided into the SMS service and Email service areas, which list the available services together with their type, status, and associated scenarios. You can click Add service at the top of the page to register Alibaba Cloud SMS or a custom mailbox, or click the registration button directly in the corresponding service area.

SMS service

The SMS service provides Wanxiaozhi official SMS by default. It is ready to use after activation, supports all SMS scenarios, and requires no configuration.

To use your own SMS service, register Alibaba Cloud SMS:

  1. On the Service Integration tab, in the SMS service area, click Connect SMS Service, or click Add service and then select Alibaba Cloud SMS.

  2. In the Authorize Alibaba Cloud SMS dialog box, confirm the authorization scope and click Agree and authorize.

    The authorization is used only to send notifications. You can revoke the authorization in service registration at any time.
  3. After the authorization, the system automatically retrieves the SMS signatures and templates under your Alibaba Cloud account. From the retrieved results, select the SMS signature and the SMS template used to send notifications, and then complete a test send by following the on-screen instructions.

  4. After the test passes, save the service. You can then select your own SMS service as the sender in Notification Scenes.

Note
  • Before you register the service, make sure that Short Message Service is activated for your Alibaba Cloud account and that a valid SMS signature and template are created.

  • Only the built-in registration/sign-in verification-code SMS scenario can be switched to your own Alibaba Cloud SMS. Custom SMS scenarios still use Wanxiaozhi official SMS because their variables are dynamic.

Email service

The email service provides Wanxiaozhi official email by default. It is ready to use after activation, supports all email scenarios, and requires no configuration.

To use your own email service, register a custom mailbox (SMTP). The registration form requires the SMTP fields described in the following table. In the Required column, Yes indicates that you must provide a value for the field, and No indicates that you can leave the field empty and use the default value.

Field

Required

Description

Service name

Yes

The name of your own email service. The name helps you identify the service in notification scenarios, for example, "Company notification mailbox".

SMTP_SENDER_NAME

Yes

The sender display name that recipients see when they receive the email.

SMTP_HOST

Yes

The SMTP server address provided by your email service provider, for example, smtp.example.com.

SMTP_PORT

Yes

The SMTP server port. Default value: 465.

SMTP_SECURITY

No

The encryption method. TLS (465) and STARTTLS (587) are supported. Default value: TLS (465).

SMTP_USER

Yes

The mailbox account used to log on to SMTP. It also serves as the sender address and the service identifier. This field cannot be modified after the service is registered. To change it, add the service again.

SMTP_PASS

Yes

The SMTP logon password. (Recommended) Enter the authorization code of the mailbox. After the password is saved, only a masked value is displayed. If you modify the connection configuration, you must enter the password again and run a test.

SMTP_ADMIN_EMAIL

Yes

The administrator email address that receives alerts when sending fails or the service is abnormal.

  1. On the Service Integration tab, in the Email service area, click Connect Email Service, or click Add service and then select Custom Email to open the Connect Custom Email form.

  2. Configure the SMTP settings described in the preceding table.

  3. Enter the Recipient, Email subject, and Email body of the test email. The default subject is "Email service test", and you can modify both the subject and the body. Click Send test email. The test email is actually sent through the SMTP configuration that you entered, so make sure that the recipient mailbox can receive it.

  4. After the test passes, click Save service to complete the registration. You cannot save the service before the test passes.

Select the sending service in a notification scenario

After your own service is registered and passes the test, click the Notification Scenes tab. In the Current sending service column of the target scenario, click the service name to open the drop-down list and select the service that you want to use (Wanxiaozhi official SMS/email, or a registered own service). If no own service is registered, the drop-down list is unavailable and the scenario uses the Wanxiaozhi official service by default.

Important

If you suspend your own service, the system does not automatically switch back to the Wanxiaozhi official service. Perform a manual switchover in Notification Scenes.

FAQ

  • How do I modify theSMS or email channel configuration?

    Register your own sending service in Manage > Notifications > Service Integration, and then perform a manual switchover in Notification Scenes. You can register Alibaba Cloud SMS or a custom mailbox (SMTP). Your own sending service is an Advanced feature. If you do not register your own service, the default service provided by the system continues to handle daily user authentication.

  • A scenario is enabled but no notification is received. How do I troubleshoot?

    • Check whether the Status of the scenario is "Enabled".

    • Verify that the Trigger conditions are correct, including the data table to listen to and the trigger event types.

    • Check whether a sending frequency limit has been reached. No further notifications are sent after a limit is reached.

    • Confirm that the mobile number of the SMS recipient has passed verification-code verification.

  • What is a built-in scenario?

    A built-in scenario is an authentication scenario that Wanxiaozhi turns on automatically when you describe a "user sign-in" scenario in the conversation window. The system generates the corresponding verification-code sending scenario and uses the system default configurations. By default, the system provides both SMS and email verification-code sending services. The platform automatically manages the trigger logic of these scenarios, so you do not need to create them manually.