ivy
07/16/2025, 11:27 AMivy
07/16/2025, 11:28 AMivy
07/16/2025, 11:32 AMChiranjeet Mishra
07/16/2025, 11:48 PMShubham Bajaj
07/18/2025, 11:38 PMivy
07/20/2025, 9:48 AMivy
07/20/2025, 9:56 AMGilang
07/20/2025, 10:00 AMShubham Bajaj
07/20/2025, 11:39 PMShubham Bajaj
07/20/2025, 11:48 PMfixed_strctured_data_plan
json
{
"structuredDataPlan": {
"enabled": true,
"messages": [
{
"content": "You are an expert data extractor. You will be given a transcript of a call. Extract structured data per the JSON Schema. DO NOT return anything except the structured data.\n\nExtract the following information:\n1) appointmentType - The type of appointment being discussed\n2) serviceProvider - The name or identifier of the service provider\n\nJSON Schema:\n{{schema}}\n\nOnly respond with the JSON.",
"role": "system"
},
{
"role": "user",
"content": "Here is the transcript:\n\n{{transcript}}\n\n"
}
],
"schema": {
"type": "object",
"properties": {
"appointmentType": {
"type": "string",
"description": "The type of appointment being scheduled or discussed"
},
"serviceProvider": {
"type": "string",
"description": "The name or identifier of the service provider"
}
},
"required": ["appointmentType", "serviceProvider"]
},
"timeoutSeconds": 5
}
}
broken_structured_data_plan
json
"structuredDataPlan": {
"enabled": true,
"messages": [
{
"content": "Extract the following information:\n1) Which type of appointment\n2) Which service provider",
"role": "system"
}
],
"schema": {
"properties": {
"Which service provider": {"type": "string"},
"Which type of appointment ": {"type": "string"}
},
"type": "object"
},
"timeoutSeconds": 5
}Shubham Bajaj
07/20/2025, 11:49 PMwhats_fixed
1. **Fixed property names**:
- "Which type of appointment " → "appointmentType" (removed trailing space, used camelCase)
- "Which service provider" → "serviceProvider" (removed spaces, used camelCase)
2. **Added required fields**: Specified that both fields are required in the required array
3. **Added descriptions**: Each property now has a clear description for better LLM understanding
4. **Improved system message**:
- More specific instructions about what to extract
- Clearer mapping between requirements and schema properties
- Follows the established pattern from the codebase
5. **Added user message**: Following the standard pattern with template variables for transcript injectionGilang
07/21/2025, 2:43 AMChiranjeet Mishra
07/26/2025, 1:45 PMGilang
07/31/2025, 2:08 AMChiranjeet Mishra
08/03/2025, 5:47 PM