You can use function calling to get customer sentiment by evaluating the whole 6-7 pairs of question answer data you have.
Check this sample function:
{
"name": "customer_sentiment",
"description": "Predicts and scores the customer's intent sentiment based on given text",
"parameters": {
"type": "object",
"properties": {
"purchase_intent": {
"type": "number",
"description": "Score indicating the customer's intent to purchase a product or service"
},
"feedback_intent": {
"type": "number",
"description": "Score indicating the customer's intent to provide feedback or a review"
},
"query_intent": {
"type": "number",
"description": "Score indicating the customer's intent to seek information or ask a question"
}
},
"required": [ "purchase_intent", "feedback_intent", "query_intent" ]
}
}
Sample conversations and scores:
Sales Rep: Hello Mr. Stevens. This is Rico from Town Credit Company. Do you have two minutes to chat?
Prospect: Yes, I do. How can I help you?
Sales Rep: Great, thank you. We’re a business finance platform that helps companies like yours to get additional funds for your projects. I’m calling to see if we can provide assistance.
Prospect: Interesting, can you tell me more about how your product can help my company?
{
role: 'assistant',
content: null,
function_call: {
name: 'customer_sentiment',
arguments: '{\n' +
' "purchase_intent": 0.6,\n' +
' "feedback_intent": 0.2,\n' +
' "query_intent": 0.8\n' +
'}'
}
}
Sales Rep: Hello Mr. Stevens. This is Rico from Town Credit Company. Do you have two minutes to chat?
Prospect: Yes, I do. How can I help you?
Sales Rep: Great, thank you. We’re a business finance platform that helps companies like yours to get additional funds for your projects. I’m calling to see if we can provide assistance.
Prospect: Well, currently we do not have such need.
{
role: 'assistant',
content: null,
function_call: {
name: 'customer_sentiment',
arguments: '{\n "purchase_intent": 0,\n "feedback_intent": 0,\n "query_intent": 0\n}'
}
}
Sales Rep: Hello Mr. Stevens. This is Rico from Town Credit Company. Do you have two minutes to chat?
Prospect: Yes, I do. How can I help you?
Sales Rep: Great, thank you. We’re a business finance platform that helps companies like yours to get additional funds for your projects. I’m calling to see if we can provide assistance.
Prospect: Do you have any materials or site which I can check?
{
role: 'assistant',
content: null,
function_call: {
name: 'customer_sentiment',
arguments: '{\n' +
' "purchase_intent": 0.2,\n' +
' "feedback_intent": 0.8,\n' +
' "query_intent": 0.9\n' +
'}'
}
}
Just create your own parameters/categories and analyze the scores you will get.