Sales Insights
Finds spans in the text with Sales Insights.
[0:52] Prospect:
Just sad. NO INTEREST Like I don't like if you're selling me something you just done yourself a huge disservice. Why are you calling me?
Just sad. NO INTEREST Like I don't like if you're selling me something you just done yourself a huge disservice. Why are you calling me?
Use Sales Insights Skill to extract:
Benchmarks
Coming soon...
Output labels
Parameters
None.
Example
Request
curl -X POST \
'https://api.oneai.com/api/v0/pipeline' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'api-key: <YOUR-API-KEY-HERE>' \
-d '{
"input": [{ "speaker": "agent", "utterance": "Alright, hello. Hello. Is this over? Yes. Okay, good morning. This is Shlomi Cucinelli from ena dot, how are you? I'\''m fine. How are you? I'\''m doing well. My apologies for calling out of the blue the I noticed that you recently downloaded a paper of ours regarding AI driven business monitoring or anomaly detection, if you will. I was curious to see what drove your interest. I don'\''t know if that was a good time, perhaps maybe later on is better?", "timestamp": "0:01" }, { "speaker": "customer", "utterance": "Yeah, I was just curious, because we are like in the beginning of looking at data governance solutions, but we are far away from from anything in the pipeline, or fourth, or just just information purposes.", "timestamp": "0:28" }, { "speaker": "agent", "utterance": "...", "timestamp": "..." }],
"input_type": "conversation",
"content_type": "application/json",
"steps": [
{
"skill": "sales-insights"
}
]
}'
const { OneAI } = require("oneai");
const oneai = new OneAI("<YOUR-API-KEY-HERE>");
const conversation = new oneai.Conversation(
[{ "speaker": "agent", "utterance": "Alright, hello. Hello. Is this over? Yes. Okay, good morning. This is Shlomi Cucinelli from ena dot, how are you? I'm fine. How are you? I'm doing well. My apologies for calling out of the blue the I noticed that you recently downloaded a paper of ours regarding AI driven business monitoring or anomaly detection, if you will. I was curious to see what drove your interest. I don't know if that was a good time, perhaps maybe later on is better?", "timestamp": "0:01" }, { "speaker": "customer", "utterance": "Yeah, I was just curious, because we are like in the beginning of looking at data governance solutions, but we are far away from from anything in the pipeline, or fourth, or just just information purposes.", "timestamp": "0:28" }, { "speaker": "agent", "utterance": "...", "timestamp": "..." }]
);
const pipeline = new oneai.Pipeline(
oneai.skills.salesInsights(),
);
pipeline.run(conversation).then(console.log);
import oneai
oneai.api_key = "<YOUR-API-KEY-HERE>"
pipeline = oneai.Pipeline(
steps = [
oneai.skills.SalesInsights(),
]
)
conversation = oneai.Conversation(
[{ "speaker": "agent", "utterance": "Alright, hello. Hello. Is this over? Yes. Okay, good morning. This is Shlomi Cucinelli from ena dot, how are you? I'm fine. How are you? I'm doing well. My apologies for calling out of the blue the I noticed that you recently downloaded a paper of ours regarding AI driven business monitoring or anomaly detection, if you will. I was curious to see what drove your interest. I don't know if that was a good time, perhaps maybe later on is better?", "timestamp": "0:01" }, { "speaker": "customer", "utterance": "Yeah, I was just curious, because we are like in the beginning of looking at data governance solutions, but we are far away from from anything in the pipeline, or fourth, or just just information purposes.", "timestamp": "0:28" }, { "speaker": "agent", "utterance": "...", "timestamp": "..." }]
)
output = pipeline.run(conversation)
Response
{
"input_text": "[0:01] agent:\nAlright, hello. Hello. Is this over? Yes. Okay, good morning. This is Shlomi Cucinelli from ena dot, how are you? I'm fine. How are you? I'm doing well. My apologies for calling out of the blue the I noticed that you recently downloaded a paper of ours regarding AI driven business monitoring or anomaly detection, if you will. I was curious to see what drove your interest. I don't know if that was a good time, perhaps maybe later on is better?\n\n[0:28] customer:\nYeah, I was just curious, because we are like in the beginning of looking at data governance solutions, but we are far away from from anything in the pipeline, or fourth, or just just information purposes.\n\n",
"status": "success",
"output": [
{
"text_generated_by_step_name": "input",
"text_generated_by_step_id": 0,
"text": "[0:01] agent:\nAlright, hello. Hello. Is this over? Yes. Okay, good morning. This is Shlomi Cucinelli from ena dot, how are you? I'm fine. How are you? I'm doing well. My apologies for calling out of the blue the I noticed that you recently downloaded a paper of ours regarding AI driven business monitoring or anomaly detection, if you will. I was curious to see what drove your interest. I don't know if that was a good time, perhaps maybe later on is better?\n\n[0:28] customer:\nYeah, I was just curious, because we are like in the beginning of looking at data governance solutions, but we are far away from from anything in the pipeline, or fourth, or just just information purposes.\n\n",
"labels": [
{
"type": "sales-insights",
"skill": "sales-insights",
"name": "Timing & Process",
"value": "Yeah, I was just curious, because we are like in the beginning of looking at data governance solutions, but we are far away from from anything in the pipeline, or fourth, or just just information purposes.",
"speaker": "customer",
"span_text": "Yeah, I was just curious, because we are like in the beginning of looking at data governance solutions, but we are far away from from anything in the pipeline, or fourth, or just just information purposes.",
"span": [
479,
684
],
"output_spans": [
{
"section": 1,
"start": 0,
"end": 205
}
]
}
]
}
],
"stats": {
"concurrency_wait_time": 0,
"total_running_jobs": 1,
"total_waiting_jobs": 0
}
}
{
text: '[0:01] agent:\n' +
"Alright, hello. Hello. Is this over? Yes. Okay, good morning. This is Shlomi Cucinelli from ena dot, how are you? I'm fine. How are you? I'm doing well. My apologies for calling out of the blue the I noticed that you recently downloaded a paper of ours regarding AI driven business monitoring or anomaly detection, if you will. I was curious to see what drove your interest. I don't know if that was a good time, perhaps maybe later on is better?\n" +
'\n' +
'[0:28] customer:\n' +
'Yeah, I was just curious, because we are like in the beginning of looking at data governance solutions, but we are far away from from anything in the pipeline, or fourth, or just just information purposes.\n' +
'\n' +
'[...] agent:\n' +
'...\n' +
'\n',
salesInsights: [
{
type: 'sales-insights',
skill: 'sales-insights',
name: 'Timing & Process',
value: 'Yeah, I was just curious, because we are like in the beginning of looking at data governance solutions, but we are far away from from anything in the pipeline, or fourth, or just just information purposes.',
speaker: 'customer',
span_text: 'Yeah, I was just curious, because we are like in the beginning of looking at data governance solutions, but we are far away from from anything in the pipeline, or fourth, or just just information purposes.',
span: [ 479, 684 ],
output_spans: [ { section: 1, start: 0, end: 205 } ]
}
]
}
Updated 2 months ago