Variáveis do Fluxo

{
  "phone": "={{ $json.body.phone.split(\"|\")[2] }}",
  "utm_source": "={{ $json.body.utm_source ?? null }}",
  "utm_medium": "={{ $json.body.utm_medium ?? null }}",
  "cpf": "={{ $json.body.cpf ? String($json.body.cpf.replaceAll(\".\", \"\").replaceAll(\"-\",\"\").padStart(11, \"0\")) : null  }}",
  "campaign": "={{ $json.body.campaign }}",
  "answer_message": "={{ $json.body.answer_message }}",
  "last_interaction_channel": "={{ $json.body.last_interaction_channel }}",
  "utm_type": "={{ $json.body.utm_type ?? null }}",
  "pipeline": "={{ $json.body.pipeline ?? null }}",
  "spoke_on_the_receptive": "={{ $json.body.spoke_on_the_receptive }}",
  "correlation_id": "={{ $if($(\"Webhook\").isExecuted, $(\"Webhook\").first().json.body.correlation_id, \"\") }}",
  "classification": "={{ $json.body.classification }}"
}

Saídas

  • flow.phone: Telefone extraído e limpo
  • flow.cpf: CPF sanitizado (apenas números)
  • flow.correlation_id: ID de correlação para rastreamento

Descrição adicional

Seleciona e formata os campos principais recebidos do webhook para uso posterior no fluxo.

Relações

← Recebe de: 1-webhook → Envia para: 3-jump-formatar-phone