Action Items & Follow ups
Enable this model configuration to list all the action items generated from the conversation

Overview

Action Items API detects an event, task, activity, or action that needs to take place in the future (after the conversation). These Action items can be of high priority with a definite assignee and due date or of lower priority with a non-definite due date.
All action items are generated with action phrases, assignees, priority detection, and due dates to make the output immediately consumable by your CRM or project management tools

modelTypeConfiguration

Keys
Value
modelType
action_items
modelConfig
Model Configuration object for action_items

modelConfig parameters

Keys
Possible Values
Default Value
priority
1, 2, 3
1

Priority Values

Value
Description
1
Only high priority questions.
2
High and Medium priority questions.
3
High, Medium and Low priority questions.

Priority Description

Priority
Description
High
Well defined action item with a date attached to it, eg: I will revert back to you on the status of the order by friday.
Medium
Well defined action items that don't have a date attached to them, eg: I will get back to you on the order status
Low
Vaguely defined action items in the call, eg: I'll get back to you on that

Example Request

Curl
Python
1
curl --location --request POST 'https://api.marsview.ai/cb/v1/conversation/compute' \
2
--header 'Content-Type: application/json' \
3
--header "Authorization: {{Insert Auth Token}}" \
4
--data-raw '{
5
"txnId": "{{Insert txn ID}}",
6
"enableModels":[
7
{
8
"modelType":"speech_to_text",
9
"modelConfig":{
10
"automatic_punctuation" : true,
11
"custom_vocabulary":["Marsview", "Communication"],
12
"speaker_seperation":{
13
"num_speakers":2
14
},
15
"enableKeywords":true,
16
"enableTopics":false
17
}
18
},
19
{
20
"modelType":"speech_type_analysis"
21
},
22
{
23
"modelType":"action_items",
24
"modelConfig":{
25
"priority": 1
26
}
27
}
28
]
29
}'
Copied!
1
import requests
2
auth_token = "replace this with your auth token"
3
txn_id = "Replace this with your txn id"
4
request_url = "https://api.marsview.ai/cb/v1/conversation/compute"
5
6
7
def get_action_items():
8
payload={
9
"txnId": txn_id,
10
"enableModels":[
11
{
12
"modelType":"speech_to_text",
13
"modelConfig":{
14
"automatic_punctuation" : True,
15
"custom_vocabulary":["Marsview", "Communication"],
16
"speaker_seperation":{
17
"num_speakers":2
18
},
19
"enableKeywords":True,
20
"enableTopics":False
21
}
22
},
23
{
24
"modelType":"speech_type_analysis"
25
},
26
{
27
"modelType":"action_items"
28
}
29
]
30
}
31
headers = {'authorization': '{}'.format(auth_token)}
32
33
response = requests.request("POST", headers=headers, json=payload)
34
print(response.text)
35
if response.status_code == 200 and response.json()["status"] == "true":
36
return response.json()["data"]["enableModels"]["state"]["status"]
37
else:
38
raise Exception("Custom exception")
39
40
if __name__ == "__main__":
41
get_action_items()
Copied!

Example Response

1
"data": {
2
"actionsData": [
3
{
4
"actions": "I am willing and capable of working long hours to complete the tasks.",
5
"startTime": 79979.999,
6
"endTime": 84060,
7
"confidence": "0.88245463",
8
"priority": "high",
9
"completionDate": "NA"
10
},
11
]
12
}
Copied!

Example Response

Field
Description
actionData
List of actions objects identified in the Video/Audio
actions
Identified sentences inside the given time frame that represent actions
startTime
Start time of the sentence in the input Video/Audio in milliseconds.
endTime
End time of the sentence in the input Video/Audio in milliseconds.
confidence
Model's confidence the the predicted action
priority
Priority of the action item. Defenitions for priority are given in the Priority description table
completionDate
Date specified in the given sentence identified as an action. This value will be null if a date is not mentioned in the sentence
Last modified 1mo ago