Custom Statement Tags
Marsview offers intent recognition for text, speech in async and real-time.
Custom statement tag detection Learn more
Custom statement tag detection in real-time speech analytics Learn more
Custom statement tag detection in async speech analytics Learn more
Creation of Statement Tags
API Request
Creates a new statement tag and responds with the new statementTagId in the database
POST
https://api.marsview.ai/cb/v1/profile/statement_tags/create_statement_tag
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 |
statementTagName* | String | The name of the statementTag to be created |
statementTagSamples* | Array | Array of text/sentences samples for the statementTag |
statementTagPhrases | Integer | Array of phrases that used for phrase matching |
threshold | Float | The confidence threshold to be used for statement tag detection |
priority | Integer | The priority of the statement tag |
Example Curl Request
Shown below is a code snippet to create a new intent
Example Response
The statement tag is created if the server responds with a 200 status code and the status
is set to True
in the JSON response
Get User Statement Tags
API Request
Responds with all the statement tag data and from the database
GET
https://api.marsview.ai/cb/v1/profile/statement_tags/get_user_statement_tags
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 Statement Tags
API Request
Deletes an existing statement tag and responds with the deleted statementTagId from the database
DELETE
https://api.marsview.ai/cb/v1/profile/statement_tags/delete_statement_tag
Creates
Query Parameters
Name | Type | Description |
---|---|---|
userId* | String | Your userId or registered email on the Marsview api platform |
statementTagId* | String | The statementTagId 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