Exemplos por uso

O que as pessoas enviam para o Zenhook e em que se torna cada envio no feed. Copie o JSON, ou cole a instrução no seu agente de código para que ele ligue o evento.

Vendas e contactos

O total do dia com um campo Amount, ou o número de novos contactos.

json
{
  "title": "Payment received",
  "level": "success",
  "fields": [
    { "label": "Amount", "value": "$129.00" },
    { "label": "Plan", "value": "Pro" }
  ],
  "actor": { "name": "Sarah Chen", "email": "[email protected]" }
}
Instrução para o seu agente de IA

When a payment succeeds, send a POST request with a JSON body to the URL in the ZENHOOK_URL environment variable: title "Payment received", level "success", a field Amount with the price and currency, a field Plan, and the customer as actor with name and email. Read https://zenhook.dev/docs/api for the fields. Do nothing if ZENHOOK_URL is not set, and never let a failed request break the app.

Registos

A contagem do dia com barras por hora, e cada nova pessoa com o nome e o e-mail.

json
{
  "title": "New sign-up",
  "level": "info",
  "actor": { "name": "Lucas Martin", "email": "[email protected]", "plan": "Free" }
}
Instrução para o seu agente de IA

When a user signs up, send a POST request with a JSON body to the URL in the ZENHOOK_URL environment variable: title "New sign-up", level "info", and the user as actor with name, email and plan. Read https://zenhook.dev/docs/api for the fields. Do nothing if ZENHOOK_URL is not set, and never let a failed request break the app.

Atividade de um produto ou de um jogo

Um contador com barras por hora. Acima de 3 por hora, o seu telemóvel recebe um resumo por hora em vez de cada evento.

json
{
  "title": "Game started",
  "level": "info",
  "fields": [
    { "label": "Level", "value": "3" },
    { "label": "Platform", "value": "iOS" }
  ]
}
Instrução para o seu agente de IA

When a game starts, send a POST request with a JSON body to the URL in the ZENHOOK_URL environment variable: title "Game started", level "info", and fields Level and Platform. Read https://zenhook.dev/docs/api for the fields. Do nothing if ZENHOOK_URL is not set, and never let a failed request break the app.

Automatizações pessoais

Uma sequência de dias seguidos. As falhas enviadas com o nível error ficam a vermelho.

json
{
  "title": "Nightly backup",
  "level": "success",
  "message": "12.4 GB in 3m 12s"
}
Instrução para o seu agente de IA

When the nightly backup finishes, send a POST request with a JSON body to the URL in the ZENHOOK_URL environment variable: title "Nightly backup", level "success" (or "error" if it failed), and a message with the size and duration. Read https://zenhook.dev/docs/api for the fields. Do nothing if ZENHOOK_URL is not set, and never let a failed request break the app.

Como os eventos se tornam widgetsSem código? Use o n8n, Make ou Zapier