Manage plugins

更新时间:
复制 MD 格式

Add plugins to your AI assistant to improve its efficiency and specialized capabilities. AppFlow provides a variety of pre-built plugins and supports the development of custom plugins. This topic describes how to add and manage plugins for your AI assistant.

Prerequisites

You have created an AI assistant. For more information, see Create an AI assistant.

Procedure

Add a plugin

Add a custom plugin

You can create a custom plugin by creating a connector in AppFlow and obtaining the corresponding AppCode. This section uses the Moji Weather (Free Edition) plugin as an example.

  1. In the Custom Plugin > My Plugins section, select a plugin and click Add.

  2. Click Add New Credential. In the dialog box that appears, enter the AppCode and Credential Name, and then click Confirm.

  3. Select the credential that you just created, click Next, complete the parameter settings, and then click OK.

    Note
    • The required parameters vary by plugin. Configure them as needed.

    • If you enter {{AppFlow.AI inference}}, the AI automatically infers the value from your question during runtime. If you enter a static field, the plugin runs using that value. If you leave the field blank, the parameter is not used.

  4. When the status changes to Selected, click OK to add the plugin.

Add a public plugin

Some plugins in the Plugin Marketplace require account authorization. For other plugins, you only need to configure their parameters.

No authorization required

This section uses the QR Code Generator plugin as an example.

  1. In the Plugin Marketplace, select a plugin and click Add.

  2. On the import page, complete the parameter settings and click OK.

    Note

    The required parameters vary by plugin. Configure them as needed.

    If you enter {{AppFlow.AI inference}}, the AI automatically infers the value from your question during runtime. If you enter a static field, the plugin runs using that value. If you leave the field blank, the parameter is not used.

  3. When the status changes to Selected, click OK to add the plugin.

Authorization required

This section uses the National University and College Query plugin as an example.

  1. Purchase the product in the Alibaba Cloud Marketplace, or confirm that you already own it, and then obtain the AppCode.

  2. In the Plugin Marketplace, select the plugin and click Add.

  3. From the Account Authorization drop-down list, click Add New Credential. In the dialog box that appears, enter the AppCode and Credential Name, and then click Confirm.

  4. Select the credential and click Next.

  5. Complete the parameter settings and click OK.

  6. When the status changes to Selected, click OK to add the plugin.

Test a plugin

Go to the Page Settings tab. Use the AI assistant on the right side of the page to test the plugin based on your parameter settings. This section uses generating a QR code as an example.

image

Modify a configuration

Note

The procedure for adding a new credential and configuring parameters is the same as when you add a plugin.

  1. On the Plugins tab, select the plugin that you want to modify and click Configure.

  2. In the dialog box that appears, select a Credential or click Add New Credential, and then click Next.

  3. Edit the Plugin Name and Plugin Description, and then click Next.

  4. Edit the plugin action configuration and click Confirm.

Delete a plugin

Important
  • The delete operation is irreversible. Proceed with caution.

  • This operation does not delete custom plugins created by creating a connector.

  • This operation does not delete products purchased from the Alibaba Cloud Marketplace.

To delete a plugin, select the plugin that you want to delete, click Delete, and then click Confirm Deletion in the dialog box that appears.

Set a trusted domain name.

  1. On the self-built application page, click Set Trusted Domain Name in the Webpage Authorization and JS-SDK section.

  1. Enter the trusted entity domain name and click Request Domain Validation.

  2. In the dialog box that appears, click Download File. Upload the downloaded file to the root directory of the domain name that you entered.

    This section provides an example of the domain validation procedure for WeCom. The example uses an Nginx server on a Linux system with the endpoint poptest.appflow.aliyunnest.com. Replace the domain name as needed.

    1. Use Workbench to upload the file to the /usr/share/nginx/html/ directory.

      image

    2. Use a browser to access http://poptest.appflow.aliyunnest.com/WW_verify_nmKUX8H4pHQhK74f.txt. The information shown in the following figure is returned.

      image

  3. The validated status is shown in the following figure.

    image