Your expertise is structuring insurance call dialogues into standardized JSON output, tagging speakers, fixing grammar, and capturing essential metadata insights. **user_prompt:** Take the provided insurance call transcript and structure it into JSON by addressing these 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: Yes.

Speaker A: Hey, good morning. Michelle here. You doing all right?

Speaker B: Yes, ma&#x27;am, I am. How may I help you?

Speaker A: I&#x27;m calling from U.S. funeral Expenses. I&#x27;m reaching out because many people I speak with want to make sure their loved ones won&#x27;t be burdened with unexpected expenses. We offer a simple solution to help with that. Can you please tell me your age?

Speaker B: I&#x27;m 35. And I asked you all to please take me off your call. There&#x27;s plenty of times, and you all call me all the time. Can you please take me off your call?

Speaker A: I apologize for the inconvenience. I will make sure to put your number in our do not call list. Thank you.

Speaker B: Thank you. Thank you, Ms. Michelle.



JSON Output:


**output:** 


{&quot;agent_name&quot;: &quot;Michelle&quot;, &quot;permission_confirmation&quot;: 2, &quot;client_age&quot;: 35, &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, good morning. Michelle here. Are you doing alright?&quot;}, {&quot;speaker&quot;: &quot;Client&quot;, &quot;text&quot;: &quot;Yes, ma&#x27;am, I am. How may I help you?&quot;}, {&quot;speaker&quot;: &quot;Agent&quot;, &quot;text&quot;: &quot;I&#x27;m calling from U.S. Funeral Expenses. I&#x27;m reaching out because many people I speak with want to make sure their loved ones won&#x27;t be burdened with unexpected expenses. We offer a simple solution to help with that. Can you please tell me your age?&quot;}, {&quot;speaker&quot;: &quot;Client&quot;, &quot;text&quot;: &quot;I&#x27;m 35. And I ask you all to please take me off your call list. This has happened plenty of times, and you all call me all the time.&quot;}, {&quot;speaker&quot;: &quot;Agent&quot;, &quot;text&quot;: &quot;I apologize for the inconvenience. I will make sure to put your number on our do not call list. Thank you.&quot;}, {&quot;speaker&quot;: &quot;Client&quot;, &quot;text&quot;: &quot;Thank you, Ms. Michelle.&quot;}], &quot;call_completion&quot;: 1, &quot;call_outcome&quot;: 3, &quot;client_objection&quot;: &quot;Asked to be removed from the call list due to frequent calls.&quot;, &quot;agent_objection_response&quot;: &quot;Apologized and confirmed adding the client to the do not call list.&quot;, &quot;client_sentiment&quot;: 1, &quot;follow_up&quot;: 0, &quot;follow_up_type&quot;: 0, &quot;agent_performance&quot;: 6, &quot;agent_persuasiveness_score&quot;: 1, &quot;transfer_success_rate&quot;: 0, &quot;call_drop_reason&quot;: 3, &quot;do_not_call&quot;: 1, &quot;misrepresentation_risk&quot;: 0}
{&quot;agent_name&quot;: &quot;Michelle&quot;, &quot;permission_confirmation&quot;: 2, &quot;client_age&quot;: 35, &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, good morning. Michelle here. How are you doing?&quot;}, {&quot;speaker&quot;: &quot;Client&quot;, &quot;text&quot;: &quot;Yes, ma&#x27;am, I am. How may I help you?&quot;}, {&quot;speaker&quot;: &quot;Agent&quot;, &quot;text&quot;: &quot;I&#x27;m calling from U.S. Funeral Expenses. I&#x27;m reaching out because many people I speak with want to make sure their loved ones won&#x27;t be burdened with unexpected expenses. We offer a simple solution to help with that. Can you please tell me your age?&quot;}, {&quot;speaker&quot;: &quot;Client&quot;, &quot;text&quot;: &quot;I&#x27;m 35. And I asked you all to please take me off your call list. There have been plenty of times you&#x27;ve called me. Can you please take me off your call list?&quot;}, {&quot;speaker&quot;: &quot;Agent&quot;, &quot;text&quot;: &quot;I apologize for the inconvenience. I will make sure to put your number on our do not call list. Thank you.&quot;}, {&quot;speaker&quot;: &quot;Client&quot;, &quot;text&quot;: &quot;Thank you. Thank you, Ms. Michelle.&quot;}], &quot;call_completion&quot;: 1, &quot;call_outcome&quot;: 1, &quot;client_objection&quot;: &quot;Please take me off your call list.&quot;, &quot;agent_objection_response&quot;: &quot;Apologized and confirmed addition to the do not call list.&quot;, &quot;client_sentiment&quot;: 4, &quot;follow_up&quot;: 0, &quot;follow_up_type&quot;: 0, &quot;agent_performance&quot;: 5, &quot;agent_persuasiveness_score&quot;: 1, &quot;transfer_success_rate&quot;: 0, &quot;call_drop_reason&quot;: 0, &quot;do_not_call&quot;: 1, &quot;misrepresentation_risk&quot;: 0}