{tab === 0 && (
// Agente de atendimento da AR — multicanal
import {'{ '}criarAgente{' }'} from "@ar/core";
import {'{ '}whatsapp, crm{' }'} from "@ar/canais";
export const agente = criarAgente({'{'}
{' '}nome: "Atendimento AR",
{' '}modelo: "claude / gpt",
{' '}canais: [whatsapp, crm],
{' '}aoReceber(msg) {'{'}
{' '}const intent = await classificar(msg);
{' '}if (intent.lead) enviarParaCRM(msg);
{' '}return responder(msg, {'{'} contexto: true {'}'});
{' '}{'}'},
{'}'});
// → deploy automático via GitHub Actions
)}
{tab === 1 && (
{'{'}
{' '}"workflow": "qualificacao-de-leads",
{' '}"trigger": "webhook:whatsapp",
{' '}"nodes": [
{' '}{'{'} "type": "ai.classificar" {'}'},
{' '}{'{'} "type": "supabase.insert" {'}'},
{' '}{'{'} "type": "crm.criarOportunidade" {'}'},
{' '}{'{'} "type": "notificar.equipe" {'}'}
{' '}],
{' '}"agendamento": "realtime",
{' '}"retry": 3,
{' '}"ativo": true
{'}'}
)}
{tab === 2 && (
-- Base de leads qualificados (Supabase)
create table leads (
{' '}id uuid primary key default gen_random_uuid(),
{' '}nome text,
{' '}canal text check (canal in ('whatsapp','site')),
{' '}intent text,
{' '}score int default 0,
{' '}criado_em timestamptz default now()
);
create index on leads (score desc);
)}