目录

InsightIntent Framework Overview

When to Use

The InsightIntent framework empowers you to seamlessly integrate core functionalities of your application into the system's entry points as intents. This integration allows users to conveniently access and use these functionalities through system-wide triggers like voice assistants or auto-select cards.

For example, once a navigation feature is connected to the framework, users can simply issue a natural language command such as "Navigate to the office by bike," and the system will parse the command, invoke the corresponding intent, and initiate the navigation process.

Basic Concepts

Taking travel navigation as an example, parameters such as travel mode, departure location, destination, and waypoints are all intent parameters. The navigation result is conveyed through the intent execution result, and both the intent parameters and execution result can be encapsulated within an intent entity.

Working Principles

The InsightIntent Framework operates through a collaborative workflow between the developer side and the system entry point side:

Intent Development Mode

The InsightIntent framework provides two development modes, as described in the table below.

Mode Description Usage Scenario
Developing Intents Using Configuration Files Define intents and parameters via configuration files. The intent parameters must be consistent with those at the system entry.

- Applicable versions: API version 11 and later.

- Development implementation: Bind the intent execution to an application component, and add new intent configuration files and intent execution files.

Developing Intents Using Decorators (Recommended) Define intents and parameters through code, supporting access to both standard and custom intents.

- Applicable versions: API version 20 and later.

- Development implementation: You can directly define existing features as intents, making development more convenient. You can also add new intent execution files.