Intent Recognition
The Intent Analysis model will help you capture semantics behind user's messages and assign it to the right label. It is designed to understand human conversation in the form or free text or spoken
Marsview offers intent recognition for text, speech in async and real-time.
Text intent recognition Learn more
Intent recognition in real-time speech analytics Learn more
Intent recognition in async speech analytics Learn more
Creation of Intents
API Request
Creates a new intent and responds with the new intentId in the database
POST
https://api.marsview.ai/cb/v1/profile/intents/create_intent
Creates
Query Parameters
Name | Type | Description |
---|---|---|
userId* | String | Your userId or registered email on the Marsview api platform |
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Marsview api access token. You can generate it here |
content-type* | String | The data type of the content in the request |
Request Body
Name | Type | Description |
---|---|---|
userId* | String | Your userId or registered email on the Marsview api platform |
intentName* | String | The name of the intent to be created |
intentSamples* | Array | Array of text/sentences samples for the intent |
intentSamplePhrases | Array | Array of phrases that used for phrase matching |
Example Curl Request
Shown below is a code snippet to create a new intent
Example Response
The intent is created if the server responds with a 200 status code and the status
is set to True
in the JSON response
Get User Intents
API Request
Responds with all the intent data and from the database
GET
https://api.marsview.ai/cb/v1/profile/intents/get_user_intents
Creates
Query Parameters
Name | Type | Description |
---|---|---|
userId* | String | Your userId or registered email on the Marsview api platform |
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Marsview api access token. You can generate it here |
content-type* | String | The data type of the content in the request |
Example Curl Request
Shown below is a code snippet to fetch all the intents of a user
Example Response
The intents are fetched and returned if the server responds with a 200 status code and the status
is set to True
in the JSON response
Deletion of Intents
API Request
Deletes an existing intent and responds with the deleted intentId from the database
DELETE
https://api.marsview.ai/cb/v1/profile/intents/delete_intent
Creates
Query Parameters
Name | Type | Description |
---|---|---|
userId* | String | Your userId or registered email on the Marsview api platform |
intentId* | String | The intentId that needs to be deleted |
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Marsview api access token. You can generate it here |
content-type* | String | The data type of the content in the request |
Example Curl Request
Shown below is a code snippet to delete an existing intent
Example Response
The intent is deleted if the server responds with a 200 status code and the status
is set to True
in the JSON response
Last updated