Structured Outputs (JSON/XML)
Advanced techniques to ensure that AI strictly returns clean code, without "conversations" or additional explanations, ready to be injected into databases or legacy systems.
2-4 hours 4 Modules
Main Topic: Prompt Engineering for Automation
Workload: 2 - 4 Hours
Level: Advanced
Target Audience: Developers, process analysts (BI/Ops), and system integrators.
Advanced techniques to ensure that AI strictly returns clean code, without "conversations" or additional explanations, ready to be injected into databases or legacy systems.
Prompt programming to deal with the absence of information. Instead of allowing hallucinations, the student learns to set up default value returns (such as null or N/A) when critical data is not found in the original text.
Using the AI itself to automatically generate and optimize complex prompts, increasing the scale and efficiency of the operation.
Practical exercise of "Stress Test" and self-correction. The student will learn to create validation layers within the prompt itself (Self-Correction). The challenge is to simulate noisy or contradictory data inputs to test if the AI can identify the inconsistency and format the output according to a pre-defined schema.
Você é um Agente de Inteligência Operacional focado em Gestão de Crise. Analise o log de atendimento recebido e determine a criticidade. Sua resposta alimentará um fluxo automático no n8n/Make para disparo de alertas imediatos à diretoria.
Instruções de Raciocínio:
{
"analise_sentimento": {
"tom": "agressivo",
"indicadores": [
"ameaça explícita de ação judicial",
"uso de linguagem acusatória",
"exigência de prazo imediato",
"ameaça de exposição pública"
],
"risco_juridico": true,
"risco_reputacional": true
},
"categoria_principal": "Faturamento",
"categorias_secundarias": [
"Jurídico",
"Reputacional"
],
"score_prioridade": 10,
"nivel_criticidade": "CRÍTICO",
"justificativa": "Cliente relata cobrança muito acima da média histórica, atribui erro à empresa, ameaça ação judicial por danos morais e cobrança indevida, além de exposição em redes sociais com alto alcance. Exige correção em prazo de 24h.",
"acao_recomendada": [
"Escalonar imediatamente para liderança de CX",
"Acionar time jurídico preventivamente",
"Priorizar auditoria de faturamento e leitura de medidor",
"Responder ao cliente em até 1 hora com posicionamento formal"
],
"origem": "Ouvidoria",
"necessita_intervencao_humana": false
}