Your primary function is to systematically parse and structure insurance conversations, ensuring precision, clarity, and consistency in JSON format. **user_prompt:** Convert this unstructured insurance call transcript into structured JSON, performing the following tasks:
1. Identify Speakers: Properly tag &quot;Agent&quot;, &quot;Supervisor&quot; and &quot;Client.&quot;
2. Correct Grammar &amp; Clarity: Fix all grammatical errors while preserving meaning.
3. Structure the Conversation: Organize the dialogue logically.
4. Tag Call Completion: {0: &quot;Incomplete&quot;, 1: &quot;Complete&quot;} (Incomplete if the call was cut off, unanswered, or not fully concluded).
5. Extract Key Insights:
   - Client Age: {1: &quot;known&quot;, 0: &quot;unknown&quot;} integer if known otherwise 0
   - Identify Client Gender: {0: &quot;Male&quot;, 1: &quot;Female&quot;, 2: &quot;Unknown&quot;}
   - Call Outcome: {0: &quot;Not interested&quot;, 1: &quot;Interested&quot;, 2: &quot;Needs Follow-up&quot;, 3: &quot;Hung Up&quot;, 4: &quot;Not Eligible&quot;}
   - Client Insurance Status&quot;: {0: &quot;Not disclosed&quot;, 1: &quot;Has insurance&quot;, 2: &quot;Does not have insurance&quot;}
   - Client Objections &amp; Agent’s Responses
   - Decision Maker Confirmation: {0: &quot;No&quot;, 1: &quot;Yes&quot;, 2: &quot;unknown&quot;}
   - Client Sentiment: 0-9  (scale defined below)
   - Follow Up: {0: &quot;Not required&quot;, 1: &quot;Required&quot;}
   - Agent Performance: 0-9 (scale defined below)
   - Agent Persuasiveness: 0-4 (scale defined below)
   - Transfer Success: {0: &quot;Not Transferred&quot;, 1: &quot;Transferred&quot;}
   - Call Drop Reason: {0: &quot;Client Disengaged&quot;, 1: &quot;Technical Issue&quot;, 2: &quot;Agent Ended&quot;, 3: &quot;Client Hung Up&quot;, 4: &quot;Unknown&quot;}
   - Follow-up Type Required: {0: &quot;Not required&quot;, 1: &quot;Call&quot;, 2: &quot;Email&quot;, 3: &quot;In-person meeting&quot;}
   - Permission Confirmation: {0: &quot;No&quot;, 1: &quot;Yes&quot;, 2: &quot;Not Required&quot;} (detect if the client agreed to proceed with the call)
   - Do Not Call (DNC) Indicators: {0: &quot;No&quot;, 1: &quot;Yes&quot;} (if the client requests not to be contacted again)
   - Misrepresentation Risk: {0: &quot;No&quot;, 1: &quot;Yes&quot;} (flag if the agent made misleading statements)

Client Sentiment Scale (0-9) = {
    0: &quot;Extremely Negative&quot;,  # The client is angry, frustrated, or hostile. Very tense conversation.
    1: &quot;Highly Negative&quot;,  # The client is annoyed, upset, or dismissive, but not outright aggressive.
    2: &quot;Negative&quot;,  # The client is disinterested and quickly cuts off the agent.
    3: &quot;Somewhat Negative&quot;,  # The client is uninterested but polite.
    4: &quot;Slightly Negative&quot;,  # The client declines but listens briefly before rejecting the offer.
    5: &quot;Neutral&quot;,  # The client neither expresses strong rejection nor interest.
    6: &quot;Slightly Positive&quot;,  # The client engages in conversation but is hesitant.
    7: &quot;Somewhat Positive&quot;,  # The client shows genuine interest but has some reservations.
    8: &quot;Positive&quot;,  # The client is interested and may want to proceed but needs more details.
    9: &quot;Highly Positive&quot;  # The client is very engaged, excited, or ready to proceed.
}

Agent Performance Scale (0-9)= {
    0: &quot;Extremely Poor&quot;,  # Agent is unprofessional, rude, or misleading. May have upset the client.
    1: &quot;Very Poor&quot;,  # Agent is struggling to engage, lacks confidence, or is making mistakes.
    2: &quot;Poor&quot;,  # Agent fails to handle objections or provide clear information.
    3: &quot;Below Average&quot;,  # Agent is trying but is ineffective in guiding the conversation.
    4: &quot;Slightly Below Average&quot;,  # Agent communicates but does not engage well.
    5: &quot;Average&quot;,  # Agent follows the script but lacks enthusiasm or adaptability.
    6: &quot;Above Average&quot;,  # Agent engages well but could improve in persuasion or handling objections.
    7: &quot;Good&quot;,  # Agent is professional, confident, and handles objections effectively.
    8: &quot;Very Good&quot;,  # Agent is persuasive, clear, and builds strong rapport.
    9: &quot;Excellent&quot;  # Agent is highly skilled, engaging, and successfully leads the conversation.
}

Agent Persuasiveness Scale (0-4) = {
  0: &quot;Not Persuasive&quot;,  # Fails to overcome objections, lacks confidence.
  1: &quot;Low Persuasiveness&quot;,  # Struggles but attempts to address concerns.
  2: &quot;Moderate Persuasiveness&quot;,  # Can handle objections but lacks strong influence.
  3: &quot;Highly Persuasive&quot;,  # Overcomes objections well, leads conversation.
  4: &quot;Extremely Persuasive&quot;  # Strongly convinces the client, high success rate.
}

You must return the structured output in JSON format. The keys must remain consistent. Do not add any explanations.

Input:  
An unstructured call transcript where:
- Speaker labels may be missing.
- The conversation may contain grammatical mistakes.
- The flow may be disorganized.

Output Format:
A JSON object with:
- Structured conversation
- Completion status
- Key metadata insights
- Same dictionary keys for consistency

Example Output (JSON Format)

```json
{
  &quot;agent_name&quot;: &quot;Ethan&quot;,
  &quot;permission_confirmation&quot;: 2,
  &quot;client_age&quot;: 80,
  &quot;client_gender&quot;: 1,
  &quot;client_decision_maker&quot;: 1,
  &quot;client_insurance_status&quot;: 1,
  &quot;call_transcript&quot;: [
    {
      &quot;speaker&quot;: &quot;Agent&quot;,
      &quot;text&quot;: &quot;Hello, good morning! This is Ethan. How are you today?&quot;
    },
    {
      &quot;speaker&quot;: &quot;Client&quot;,
      &quot;text&quot;: &quot;I&#x27;m fine.&quot;
    },
    {
      &quot;speaker&quot;: &quot;Agent&quot;,
      &quot;text&quot;: &quot;That’s great! May God bless you. I&#x27;m calling because the state has approved an annual cost final expense program. To check if you qualify, may I ask how old you are?&quot;
    },
    {
      &quot;speaker&quot;: &quot;Client&quot;,
      &quot;text&quot;: &quot;I&#x27;m 80 years old and I already have insurance, but I’m not interested. Thank you.&quot;
    },
    {
      &quot;speaker&quot;: &quot;Agent&quot;,
      &quot;text&quot;: &quot;No problem! I’m not asking you to buy or change your plan. I just want to ensure you&#x27;re aware of updated benefits you might be missing.&quot;
    },
    {
      &quot;speaker&quot;: &quot;Client&quot;,
      &quot;text&quot;: &quot;No, I’m still not interested.&quot;
    },
    {
      &quot;speaker&quot;: &quot;Agent&quot;,
      &quot;text&quot;: &quot;I understand. Just to confirm, at the age of 80, do you make your own financial decisions?&quot;
    },
    {
      &quot;speaker&quot;: &quot;Client&quot;,
      &quot;text&quot;: &quot;Yes, I do.&quot;
    },
    {
      &quot;speaker&quot;: &quot;Agent&quot;,
      &quot;text&quot;: &quot;Alright, I appreciate your time. Have a great day!&quot;
    },
    {
      &quot;speaker&quot;: &quot;Client&quot;,
      &quot;text&quot;: &quot;You too. Goodbye.&quot;
    }
  ],
  &quot;call_completion&quot;: 1,
  &quot;call_outcome&quot;: 0,
  &quot;client_objection&quot;: &quot;I&#x27;m not interested.&quot;,
  &quot;agent_objection_response&quot;: &quot;Explained that it’s not about buying but about updated benefits.&quot;,
  &quot;client_sentiment&quot;: 5,
  &quot;follow_up&quot;: 0,
  &quot;follow_up_type&quot;: 0,
  &quot;agent_performance&quot;: 6,
  &quot;agent_persuasiveness_score&quot;: 2,
  &quot;transfer_success_rate&quot;: 0,
  &quot;call_drop_reason&quot;: 3,
  &quot;do_not_call&quot;: 0,
  &quot;misrepresentation_risk&quot;: 0,
}

Unstructured Transcript:
Speaker A: Hello?

Speaker B: Yeah, what do you want?

Speaker A: Sir, this short call is about your final expense benefits on your current policy that your state has just approved for you. So just to make you qualify for those benefits. May I know how old are you right now?

Speaker B: I&#x27;m 78.

Speaker A: Perfect, sir. And do you make your own health care decisions?

Speaker B: Yes, I do.

Speaker C: Perfect.

Speaker A: And do you have any.

Speaker B: Sorry, I live alone.

Speaker A: Okay, sir. So, sir, do you have any major health issue like dementia?

Speaker B: No.

Speaker C: Okay, that&#x27;s perfect. And one last question from.

Speaker B: Huh? Thank you. I have made all my arrangements.

Speaker C: Mm, that&#x27;s so perfect. You are perfectly qualified, sir. And well sir, that&#x27;s all the pretty much information I needed to verify. Let me connect this call. My senior agent, he will trade your guard uk. Sure, hold on for just a second. Your call very important to us. Please stay on the line and you&#x27;ll be transferred to this. My senior will be here in just a few seconds, so stay with me. Don&#x27;t hang up the call. Okay?

Speaker B: I&#x27;d rather hang up.

Speaker C: Listen, it&#x27;s just a short call. We only need your two or three minutes, okay? It&#x27;s just a short call. Okay? And you know, we. It&#x27;s just an informative call. We are just going to give you some information. If you like it, you can go for it. Otherwise you can take this call as informative call. Okay? Okay.

Speaker B: Yeah.

Speaker C: All right. So can I get your 5 digit city zip code for the mailing purpose?

Speaker B: Sir, I live in New Hampshire.

Speaker C: And what&#x27;s your zip code for the mailing purpose? Medicare zip code, sir zip code. Your five digit city zip code postcode. This is Kevin on the top insurance deals on a recorded lawn. How you doing today?

Speaker B: Yeah.

Speaker C: All right. My name is Kevin. I&#x27;m the top insurance seal on a recorded line. How you doing today?

Speaker B: Good.

Speaker C: Okay, I&#x27;m calling you because this is how you were in.



JSON Output:


**output:** 


{&quot;agent_name&quot;: &quot;Kevin&quot;, &quot;permission_confirmation&quot;: 1, &quot;client_age&quot;: 78, &quot;client_gender&quot;: 2, &quot;client_decision_maker&quot;: 1, &quot;client_insurance_status&quot;: 0, &quot;call_transcript&quot;: [{&quot;speaker&quot;: &quot;Agent&quot;, &quot;text&quot;: &quot;Hello, this is a short call about your final expense benefits on your current policy that your state has just approved. To see if you qualify, may I know how old you are?&quot;}, {&quot;speaker&quot;: &quot;Client&quot;, &quot;text&quot;: &quot;I&#x27;m 78.&quot;}, {&quot;speaker&quot;: &quot;Agent&quot;, &quot;text&quot;: &quot;Perfect, sir. And do you make your own healthcare decisions?&quot;}, {&quot;speaker&quot;: &quot;Client&quot;, &quot;text&quot;: &quot;Yes, I do.&quot;}, {&quot;speaker&quot;: &quot;Supervisor&quot;, &quot;text&quot;: &quot;Perfect.&quot;}, {&quot;speaker&quot;: &quot;Agent&quot;, &quot;text&quot;: &quot;And do you have any major health issues like dementia?&quot;}, {&quot;speaker&quot;: &quot;Client&quot;, &quot;text&quot;: &quot;No.&quot;}, {&quot;speaker&quot;: &quot;Supervisor&quot;, &quot;text&quot;: &quot;Okay, that&#x27;s perfect. And one last question.&quot;}, {&quot;speaker&quot;: &quot;Client&quot;, &quot;text&quot;: &quot;Thank you. I have made all my arrangements.&quot;}, {&quot;speaker&quot;: &quot;Supervisor&quot;, &quot;text&quot;: &quot;That&#x27;s perfect. You are qualified, sir. Let me connect this call to my senior agent. Hold on for just a second. Your call is very important to us. Please stay on the line.&quot;}, {&quot;speaker&quot;: &quot;Client&quot;, &quot;text&quot;: &quot;I&#x27;d rather hang up.&quot;}, {&quot;speaker&quot;: &quot;Supervisor&quot;, &quot;text&quot;: &quot;Listen, it&#x27;s just a short call. We only need two or three minutes. It&#x27;s just informative. If you like it, you can proceed. Otherwise, consider it informational.&quot;}, {&quot;speaker&quot;: &quot;Client&quot;, &quot;text&quot;: &quot;Yeah.&quot;}, {&quot;speaker&quot;: &quot;Agent&quot;, &quot;text&quot;: &quot;All right. Can I get your 5-digit city zip code for mailing purposes?&quot;}, {&quot;speaker&quot;: &quot;Client&quot;, &quot;text&quot;: &quot;I live in New Hampshire.&quot;}, {&quot;speaker&quot;: &quot;Agent&quot;, &quot;text&quot;: &quot;And what&#x27;s your zip code?&quot;}, {&quot;speaker&quot;: &quot;Agent&quot;, &quot;text&quot;: &quot;This is Kevin on the top insurance deals on a recorded line. How are you doing today?&quot;}, {&quot;speaker&quot;: &quot;Client&quot;, &quot;text&quot;: &quot;Yeah.&quot;}, {&quot;speaker&quot;: &quot;Agent&quot;, &quot;text&quot;: &quot;All right, my name is Kevin. How are you doing today?&quot;}, {&quot;speaker&quot;: &quot;Client&quot;, &quot;text&quot;: &quot;Good.&quot;}], &quot;call_completion&quot;: 0, &quot;call_outcome&quot;: 2, &quot;client_objection&quot;: &quot;I have made all my arrangements.&quot;, &quot;agent_objection_response&quot;: &quot;Attempted to transfer to a senior agent for more information.&quot;, &quot;client_sentiment&quot;: 5, &quot;follow_up&quot;: 1, &quot;follow_up_type&quot;: 1, &quot;agent_performance&quot;: 5, &quot;agent_persuasiveness_score&quot;: 1, &quot;transfer_success_rate&quot;: 0, &quot;call_drop_reason&quot;: 3, &quot;do_not_call&quot;: 0, &quot;misrepresentation_risk&quot;: 0}
{&quot;agent_name&quot;: &quot;Unknown&quot;, &quot;permission_confirmation&quot;: 2, &quot;client_age&quot;: 78, &quot;client_gender&quot;: 0, &quot;client_decision_maker&quot;: 1, &quot;client_insurance_status&quot;: 0, &quot;call_transcript&quot;: [{&quot;speaker&quot;: &quot;Agent&quot;, &quot;text&quot;: &quot;Hello? This short call is about your final expense benefits on your current policy that your state has just approved for you. May I know how old you are right now?&quot;}, {&quot;speaker&quot;: &quot;Client&quot;, &quot;text&quot;: &quot;I&#x27;m 78.&quot;}, {&quot;speaker&quot;: &quot;Agent&quot;, &quot;text&quot;: &quot;Perfect, sir. And do you make your own healthcare decisions?&quot;}, {&quot;speaker&quot;: &quot;Client&quot;, &quot;text&quot;: &quot;Yes, I do.&quot;}, {&quot;speaker&quot;: &quot;Supervisor&quot;, &quot;text&quot;: &quot;Perfect.&quot;}, {&quot;speaker&quot;: &quot;Agent&quot;, &quot;text&quot;: &quot;Do you have any major health issues like dementia?&quot;}, {&quot;speaker&quot;: &quot;Client&quot;, &quot;text&quot;: &quot;No.&quot;}, {&quot;speaker&quot;: &quot;Supervisor&quot;, &quot;text&quot;: &quot;Okay, that&#x27;s perfect. And one last question from...&quot;}, {&quot;speaker&quot;: &quot;Client&quot;, &quot;text&quot;: &quot;Thank you. I have made all my arrangements.&quot;}, {&quot;speaker&quot;: &quot;Supervisor&quot;, &quot;text&quot;: &quot;Mm, that&#x27;s so perfect. You are perfectly qualified, sir. Well, sir, that&#x27;s all the information I needed to verify. Let me connect this call to my senior agent. Hold on for just a second. Your call is very important to us. Please stay on the line and you&#x27;ll be transferred to my senior in just a few seconds, so stay with me. Don&#x27;t hang up the call, okay?&quot;}, {&quot;speaker&quot;: &quot;Client&quot;, &quot;text&quot;: &quot;I&#x27;d rather hang up.&quot;}, {&quot;speaker&quot;: &quot;Supervisor&quot;, &quot;text&quot;: &quot;Listen, it&#x27;s just a short call. We only need two or three minutes, okay? It&#x27;s just an informative call. We are just going to give you some information. If you like it, you can go for it. Otherwise, you can take this call as informative. Okay?&quot;}, {&quot;speaker&quot;: &quot;Client&quot;, &quot;text&quot;: &quot;Yeah.&quot;}, {&quot;speaker&quot;: &quot;Supervisor&quot;, &quot;text&quot;: &quot;All right. Can I get your 5-digit city zip code for mailing purposes?&quot;}, {&quot;speaker&quot;: &quot;Client&quot;, &quot;text&quot;: &quot;Sir, I live in New Hampshire.&quot;}, {&quot;speaker&quot;: &quot;Supervisor&quot;, &quot;text&quot;: &quot;And what&#x27;s your zip code for mailing purposes?&quot;}, {&quot;speaker&quot;: &quot;Client&quot;, &quot;text&quot;: &quot;Yeah.&quot;}, {&quot;speaker&quot;: &quot;Supervisor&quot;, &quot;text&quot;: &quot;All right. My name is Kevin. I&#x27;m the top insurance deal on a recorded line. How are you doing today?&quot;}, {&quot;speaker&quot;: &quot;Client&quot;, &quot;text&quot;: &quot;Good.&quot;}, {&quot;speaker&quot;: &quot;Supervisor&quot;, &quot;text&quot;: &quot;Okay, I&#x27;m calling you because...&quot;}], &quot;call_completion&quot;: 0, &quot;call_outcome&quot;: 2, &quot;client_objection&quot;: &quot;I&#x27;d rather hang up.&quot;, &quot;agent_objection_response&quot;: &quot;Tried to reassure it&#x27;s just a short informative call.&quot;, &quot;client_sentiment&quot;: 5, &quot;follow_up&quot;: 1, &quot;follow_up_type&quot;: 1, &quot;agent_performance&quot;: 4, &quot;agent_persuasiveness_score&quot;: 1, &quot;transfer_success_rate&quot;: 0, &quot;call_drop_reason&quot;: 0, &quot;do_not_call&quot;: 0, &quot;misrepresentation_risk&quot;: 0}