CRM Grape icon

CRM Grape

Integração completa com CRM Grape - Envie mensagens, gerencie contatos, tickets, tags, kanban e consultas. Compatível com Agentes IA (Tool).

Ticket → Atribuir Ticket

AI-generated

Summary

Assigns an existing CRM Grape ticket to a specific agent (attendant) by sending an assign_ticket action to the Grape n8n webhook.

Inputs

  • ID do Ticket (ticketId) (required) — ID of the ticket to assign. Sent as ticket_id.
  • ID do Usuário (userId) (required) — ID of the agent who will receive the ticket. Sent as user_id. You can get agent IDs with the Consulta > Listar Usuários operation.

Output shape

The JSON response from the Grape webhook for the assign_ticket action, emitted as one or more items per input item (arrays are split into separate items). The node runs once per input item.

The response fields are not defined in the node, so they depend on the Grape server. Auth uses the webhook token from the grapeApi credentials. Errors are thrown as Portuguese messages for HTTP 400, 401, 403, 404 and 500. With Continue On Fail enabled, the item returns {error: message} instead.

Examples

Example 1: Route a new ticket to a specific agent after a trigger fires.

Resource: Ticket; Operation: Atribuir Ticket; ID do Ticket: {{$json.ticket_id}}; ID do Usuário: 42

Example 2: Let an AI agent tool hand a ticket to a human attendant.

Resource: Ticket; Operation: Atribuir Ticket; ticketId and userId filled via $fromAI expressions

Links

Discussion