Configure automatic maintenance

Updated at:
Copy as MD

Automatic maintenance periodically checks a specified material directory, reads new or modified files, and organizes the ontology and instances. This topic describes how to configure connectors and notifications, review changes, confirm writes to the draft, and publish updates.

Automatic maintenance workflow

The automatic maintenance workflow consists of orchestrable nodes: connector source → generate ontology → manual confirmation → write to draft, with an optional publish node. The default flow canvas contains the first four nodes, and manual confirmation defaults to Web confirmation - space members.

The system mainly handles the first two steps. You handle business review, write confirmation, and publish confirmation. If there is nothing to process, the check ends without asking you to confirm again. After publishing, new service sessions can use the updated knowledge.

Term

Description

Ontology and types

Defines what to record, such as quotations and suppliers, and fields like amount and date.

Instance

A specific record in your materials, such as one quotation, one supplier, or one quotation line item.

Draft

The working version that you review and edit. Writing to the draft does not change the version that the service uses.

Publish

Saves the confirmed ontology and instances as a fixed version for the service.

Prerequisites

  • Log on to the AI-Native Database Service console.

  • You are on the allowlist and have activated an ontology instance. Click the platform navigation icon in the upper-left corner, click Ontology Service in the panel that appears, click Open Console, select the target workspace and knowledge space, and then go to the Management partition at the top and Automatic Maintenance in the left-side navigation pane.

  • The first ontology build and publish are complete. For more information, see Build and publish an ontology graph.

  • Your administrator has provided the access credentials and endpoint for the material storage, and the App ID and App Secret of the Feishu bot.

Important

Ontology Service is available only to allowlisted users. To request access, contact Alibaba Cloud technical support.

For first-time use, follow this order: configure at least one connector that can read materials automatically and confirm that its status is syncable → configure the Feishu bot, subscribe to notifications in a one-on-one chat, and bind your confirmation account if needed → enable automatic maintenance, set the sync interval, and click Sync Now to run the first round → after a notification arrives, review the changes, confirm the write to the draft, and then confirm publishing separately → after publishing succeeds, start a new service conversation and check whether the new knowledge is available.

Connect the materials to maintain

  1. Go to Automatic Maintenance and click Connectors in the Maintenance Configuration and Triggers area. The available material source types are S3 / Alibaba Cloud OSS, Agent Data Gateway, and Git Repository. DingTalk and Feishu chat content are in the Coming soon group and cannot be selected. For an OSS folder, select S3 / Alibaba Cloud OSS and Pull. With pull mode, the system checks the specified folder on a schedule.

  2. Enter the connector information as described in the following table.

    Field

    Description

    Connector name

    Use a name that is easy to identify, such as Procurement quotation inbox.

    OSS access credentials

    Select credentials already configured for the current knowledge space. If none exist, click Add / Manage Credentials, go to the Space Access Credentials tab of the Settings dialog box, and click Add Credential. Enter a credential name, an Access Key ID, and an Access Key Secret. If you use STS, also enter the STS Session Token and its expiration time. Then click Save Credential. Credentials are stored on the server and are not displayed again. Multiple connectors can reuse the same credential. Update the credential after STS expires.

    Endpoint (regional service address)

    Enter the regional service address of the bucket, such as https://oss-cn-hangzhou.aliyuncs.com. Your administrator provides this value.

    Bucket

    Enter the name of the bucket that stores the materials.

    Prefix (optional material directory)

    Enter the directory to check in this round, such as quotes/. If you leave it empty, the entire bucket is scanned.

  3. Click Verify Connection to confirm that the credentials and address work, and then click Select Sync Scope to determine the materials included in this round.

  4. Click Create Connector. In Connected Connectors, confirm the name, the directory, and the Syncable status.

Note

Materials must be stored in a source that the server can access (OSS/S3, Agent Data Gateway, or a Git repository). A single file can be up to 256 MiB, and originals and historical versions are retained. Credentials are managed by the current knowledge space and can be reused by multiple connectors. The sync button in the connector window only synchronizes materials and does not start an ontology build. To run the full automatic maintenance workflow, return to the Automatic Maintenance page and click Sync Now.

Note

If the current knowledge space has materials or a build task in progress, Create Connector is unavailable and the page indicates "Materials or a build task are being processed. You can create a connector or add materials after they finish." Wait for the task to finish and try again.

Orchestrate the maintenance flow

On the Automatic Maintenance page, click Edit Flow in the Maintenance Flow area. Select connectors and actions to orchestrate the automatic maintenance flow. Concurrent synchronization from multiple sources, web or Feishu confirmation nodes, and automatic publishing can be added as needed.

  1. Drag the required nodes from the node panel. The available node types are Connector Source, Generate Ontology, Manual Confirmation, Write to Draft, and Publish.

  2. In the Select Connector node, specify a connector that you have created. If a node is not fully configured, the page indicates that nodes need configuration, and you can click the locator link to go to that node.

  3. Drag from the + dot on the right of a node to the target node (or click the port and then click the target node) to connect them. Click a connection to insert a confirmation node or delete the connection. Use Ctrl or Cmd with the scroll wheel to zoom the canvas, and click Auto Layout to tidy the layout.

  4. Click Save Flow to save the orchestration, and click Back to Run to return to the run view.

Note

The default flow is Select Connector → Generate Ontology → Manual Confirmation (Web confirmation - space members) → Write to Draft, and does not include a publish node. After writing to the draft, you still need to publish as described in the "Publish and check service Q&A" section of this topic.

Configure Feishu notifications and your confirmation account

Note

IM and notifications currently support only a Feishu bot (one-on-one chat, @ mentions in a group, and multi-turn conversations). DingTalk and WeCom options are not available. Using DingTalk or Feishu chat content as a material source belongs to the connector scope and is marked as coming soon. It is a different capability from IM notifications.

On the Automatic Maintenance page, click IM Settings in the Maintenance Configuration and Triggers area. You can also click Settings in the left-side navigation pane and configure the IM and Notifications tab. The bot sends notifications, and your confirmation account authorizes writes and publishing. Check both. Receiving a chat reply does not mean that you have confirmation permissions.

  1. Connect the bot: If no bot is bound to the current knowledge space, click Connection Settings to expand the form, enter the App ID and App Secret provided by your administrator, and click Save and Connect. The bot is bound to the current knowledge space by default and connects automatically after you save. One bot can be bound to multiple spaces. If the bot is already connected, you do not need to enter the values again.

  2. Check the space in use: Send 当前空间 (Current space) in a one-on-one chat with the bot, and confirm that the space name in the reply is the knowledge space you want to maintain. Send 空间列表 (Space list) to view the spaces available to the bot, and send 切换空间 空间ID (Switch space <space ID>) to select the current space. Conversations and notifications use only the selected space. After you switch spaces on the web page, check the space that the bot uses again.

  3. Subscribe to notifications: Send 订阅通知 (Subscribe to notifications) in the one-on-one chat to receive pending-confirmation notifications for all sessions in the selected space. The bot notifies you when ontology or instance changes exist or when more information is required. After the first successful subscription, you do not need to subscribe again for each round. Send 取消订阅 (Unsubscribe) to stop notifications.

  4. Bind your confirmation account: Click Bind My Feishu Confirmation Account on the web page, and send the full command generated by the page to the current bot. Use the command within 10 minutes. After you receive a binding success reply, send 待确认事项 (Pending items).

Note

If you prefer to confirm on the web page, use the link in the notification to return to the page. A connected state does not mean that knowledge publishing is ready.

Warning

Do not put the App Secret, access keys, or confirmation codes in public documents, group chats, or screenshots.

Enable automatic maintenance and run a sync

  1. Enable automatic maintenance: After you confirm that the current knowledge space and material directory are correct, click Enable Automatic Maintenance at the top. Enabled indicates that subsequent automatic checks are active.

  2. Set the check interval: The page shows Sync Interval, which defaults to every 5 minutes. Click the sync interval to adjust it based on how often your materials change.

  3. Check immediately after adding materials: Upload files to the bucket and directory that the connector points to, return to the Automatic Maintenance page, and click Sync Now. After a successful upload, wait for file synchronization and parsing to complete.

In each sync round, the system performs the following processing:

  • Checks for new or modified files. You can review the files and their processing status in Materials and Tasks.

  • Reads and parses the files to process, and first checks whether types, fields, or relationships need to be added.

  • Extracts specific records and checks for duplicates. Even when the existing types are sufficient, it still checks for new instances.

  • Generates reviewable change results. It asks for more information when questions arise, and waits for write confirmation when updates exist.

Note

If nothing changed, the round shows no changes and ends, and no write or publish is needed. A queued state means that the previous round has not finished: wait for the current task instead of clicking repeatedly. If the page shows a pending-recovery state, see the FAQ in this topic. Automatic maintenance runs in the background, so you do not need to stay on the page. Pausing automatic maintenance stops subsequent scheduled checks. For a task that is already running, rely on the current status shown on the page.

Review changes and write to the draft

Go to Automatic Maintenance > Run Records > View Changes. Expand the record to see what was added, modified, or deleted in this round. This is separate from whether the changes have been written to the draft. If maintenance has never run, Run Records shows 0 and indicates that no run records exist.

Before you confirm, focus on the following three checks:

  1. Whether types and fields are appropriate: For example, whether types such as quotation and supplier need to be added, and whether fields such as amount and date have the correct meaning. Avoid creating multiple duplicate types for the same business concept.

  2. Whether specific records are complete: Check new quotations, quotation line items, and relationships. Pay attention to amounts, currencies, tax-inclusive definitions, units, and duplicate records. Return to the original materials when needed.

  3. Whether modifications and deletions match your expectations: In particular, check whether existing materials or manual edits are affected. For business questions, provide the information requested in the maintenance session or the review workbench. Questions that do not affect this round can be reviewed later.

Confirm the write on the web page: in the pending confirmation area, click View Changes and Confirm. After the changes are loaded, choose one of the following actions:

  • Confirm Write to Draft: writes only the changes of this round to the draft.

  • Write to Draft and Go to Publish: writes to the draft and then opens the publishing page. Publishing still requires a separate confirmation.

  • Skip Write: does not apply the updates of this round for now.

Note

If a message indicates that the changes have been updated, expand and review them again before confirming. Do not confirm based on the old page content. Changes mean that this round produced reviewable ontology or instance differences, not that they are published. After a successful write, you should see a result such as the ontology draft being updated. Then spot-check the results in Ontology Editor and Ontology Instances.

Confirm writes and publishing in Feishu

This section applies to users who have subscribed to notifications and bound a confirmation account. All confirmations happen in the one-on-one chat with the bot. Reply with the full command from the current notification. The conversation order for one update round is as follows:

  1. Receive the change notification for this round: First check the counts of added, modified, and deleted items. To view specific objects or sources, open the web link in the notification. Counts are only a summary and cannot replace business review.

  2. Confirm the write to the draft: After review, copy 确认写入 <write confirmation code> (Confirm write) from the bot message and send it. This action only writes to the draft and does not publish.

  3. Wait for the actual write result: After you receive a write success reply, check whether a new publish confirmation command is available. If no success result arrives, send 待确认事项 (Pending items) to check the current status.

  4. Confirm publishing separately: After the publishing check passes and a separate command arrives, copy 确认发布 <publish confirmation code> (Confirm publish) and send it. If the check fails, return to the web page to resolve the issue. The draft is kept.

Important

The text in angle brackets is a description, not a usable confirmation code. Do not copy the placeholder from this manual, and do not replace the full command with a plain reply such as "OK" or "Confirmed".

Common commands. Send the command text exactly as shown in the first column. The English text in parentheses explains the command and is not part of it.

Command to send

Purpose

当前空间

Current space. Checks the space that the bot is using.

空间列表

Space list. Lists the knowledge spaces available to the bot.

切换空间 空间ID

Switch space <space ID>. Selects the knowledge space that the bot uses. Conversations and notifications use only the selected space.

订阅通知

Subscribe to notifications. Enables pending-confirmation notifications for the current space.

通知状态

Notification status. Checks your notification subscription status.

待确认事项

Pending items. Lists the write or publish items that you can still process.

确认绑定状态

Binding status. Checks the confirmation permissions of the current Feishu account.

取消订阅

Unsubscribe. Stops notifications. Messages already sent and existing business results are kept.

新建对话

New conversation. Starts a new service Q&A conversation after publishing, using the new published version.

Publish and check service Q&A

After writing to the draft, click Publish in the maintenance steps, or go to Version Publishing on the left. Publishing saves the reviewed ontology and instances as a fixed version for the service side.

  1. Check publishing conditions: In the publishing pipeline of Version Publishing, click Check Publishing Conditions and complete the ontology, instance, validation, or evaluation items as prompted. If the conditions are not met, resolve the reported issues first and check again. For more information, see Build and publish an ontology graph.

  2. Review and publish: View Changes in This Release and enter an identifiable version name if needed. After the page allows publishing, publish and complete the confirmation. You can also confirm publishing separately in Feishu.

  3. Confirm that publishing succeeded: Check the published version at the top of the page or in Publishing History to confirm that this version is saved. Do not judge publishing as complete merely because materials are synchronized, changes exist, or the draft is updated.

  4. Start a new service conversation to check the result: Switch to Service at the top and start a new conversation. For Feishu Q&A, send 新建对话 (New conversation). Existing service sessions keep their originally bound version. A new release does not rewrite old sessions.

Check the new knowledge with questions such as:

  • Which suppliers and quotations appear in the quotation materials added in this round?

  • What is the latest quotation for a specific part? State which material the answer is based on.

  • Open the cited material in the answer and check key content such as names, amounts, and dates.

If you find errors, return to the management side, check the source, correct the draft, and publish again. You can also use Report Issue on the service side to record the problems you find.

FAQ and routine checks

What you see

What to do first

A message asks you to configure a connector first

Add at least one enabled connector that supports pull mode, and confirm that it is not paused.

New materials do not appear after upload

Check the bucket and directory, sync again from the Automatic Maintenance page, and then check the synchronization and parsing status in Materials and Tasks. If credentials have expired, ask your administrator to update them.

Run records show no changes

This means that the round produced no reviewable ontology differences. If you just uploaded files, first check whether they reached the correct directory and finished processing.

The page shows no results yet

This is not the same as no changes. Check whether the round is still running, queued, or failed to generate results, and then open View Maintenance Session to see the progress.

The page shows information needed or waiting for confirmation

Provide the required information as prompted in the maintenance session, the review workbench, or the Feishu notification. Then review the changes of this round and confirm the write.

The page shows pending recovery or a failed last run

Open the maintenance session to find the cause. After you fix the materials, credentials, or model issues, click Sync Now to continue the failed task. Do not create new tasks repeatedly.

No notification arrives in Feishu

Check the current space, notification status, and pending items in order, and verify the bot connection and the confirmation account binding. If you are already subscribed, you do not need to subscribe again for each round.

The draft is updated but Q&A does not show it

Check whether the version is published, and start a new service conversation. Writing to the draft alone does not switch the service version.

DingTalk or Feishu chat content is not available as a source

These two material source types are marked as coming soon and cannot be selected. Use S3 / Alibaba Cloud OSS, Agent Data Gateway, or a Git repository to connect your materials for now.

Before you finish each maintenance round, verify this chain: materials processed → changes of this round reviewed → write to draft succeeded → publish succeeded → spot check passed in a new service conversation.

Warning

When you ask your administrator for help, provide the space name, the run time of this round, error screenshots, and the related file names. Do not attach access keys, bot secrets, or confirmation codes that are still valid.