Api.ai enables programmers to add speech interface to apps and devices, allowing them to understand and perform verbal requests. In Api.ai, intents convert the user actions or patterns into actions. An action is nothing but extraction of user command or sentence semantics.
This action allows you to create a new intent in your Api.ai account. To achieve this, add this action to your canvas, and configure it. Select the appropriate connection for Api.ai. If you haven’t created any connections, click on ‘Add New’ to create one.
In the ‘Name’ field, enter the name of the intent that you wish to create. The ‘Contexts’ field allows you to add a list of contents required for the intent to be active. Under ‘Templates’, you need to specify the array of templates this intent will match. You can enter multiple templates by clicking on the ‘+ Template’ link.
‘Responses’ allows you to add a list of responses for this intent. A response usually contains an ‘Action’, and Affected Context (list of contexts that are set when this response is created – optional), and parameters (optional), which may further have name and value pairs. Once you enter the required details, click on ‘Done’ and run the workflow. This will create a new intent in your Api.ai account.
- code number
- errorType string
- id string