Pular para o conteúdo principal

Get Contact

Contacts

Get Contact

Retrieves a contact's data including ViewBag

Node typecontact.get
CategoriaContacts
Setups obrigatoriosNenhum

Painel de configuracao

Esta visualizacao usa o frontend real do ConfigPanel em modo embed, carregando um no de exemplo com o JSON base desta documentacao.

Preview real do painel

Nao foi possivel carregar o painel embedado automaticamente.

JSON base do node
{
  "_nodeType": "contact.get",
  "source": "current",
  "phone": ""
}

Portas

Entradas

Input
input · control

Saidas

Output
default · control
Error
error · error

Notas de uso

Output: local.<nodeId>.contact{ id, phone, name, whatsAppId, viewBag: { key: value, ... }, createdAt, updatedAt }

**Modes:**
- `source: "current"` (default) — uses the contact from the current conversation (resolved from `{{input.contactId}}`, set automatically by wa.trigger).
- `source: "phone"` — looks up contact by phone number. Set `phone` field with Handlebars (e.g., `{{input.text}}` or `{{input.from}}`).

**Accessing ViewBag data after this node:**
- Full contact: `{{local.<nodeId>.contact}}`
- Contact name: `{{local.<nodeId>.contact.name}}`
- ViewBag value: `{{local.<nodeId>.contact.viewBag.cpf}}`, `{{local.<nodeId>.contact.viewBag.email}}`

**Error port:** Fires when contact is not found (null). Use for "contact not registered" branches.

**Common pattern:** wa.trigger → contact.get(source:current) → condition(check viewBag field) → branches.