Assist Rules

These rules control when the agent should escalate a conversation to a human and what message to show in the meantime.

Get Assist Rules

GET https://api.platica.mx/v1/agents/{agentId}/assist-rules

URL parameters

ParameterTypeDescriptionRequired
agentIdstringUnique identifier of the agent

Response

{
  "assistanceTriggers": "Cuando el cliente pide hablar con una persona, se queja repetidamente, o pide algo que no puedo resolver",
  "assistanceEnabled": true,
  "waitMessage": "Un momento, te conecto con un agente humano."
}

Response fields

FieldDescription
assistanceTriggersNatural-language text describing when to escalate
assistanceEnabledWhether human escalation is enabled for this agent
waitMessageMessage sent to the customer while they wait for a human

Update Assist Rules

All fields are optional; at least one must be present.

PATCH https://api.platica.mx/v1/agents/{agentId}/assist-rules

URL parameters

ParameterTypeDescriptionRequired
agentIdstringUnique identifier of the agent

Request body

{
  "assistanceEnabled": true,
  "assistanceTriggers": "Cuando el cliente pide hablar con una persona o se queja repetidamente",
  "waitMessage": "Un momento, te conecto con un agente humano."
}
ParameterTypeDescriptionValidation
assistanceEnabledbooleanWhether human escalation is enabled
assistanceTriggersstringWhen to escalate (natural language)Maximum 650 characters
waitMessagestringMessage shown to the customer while waitingMaximum 500 characters

Response

{
  "status": "success",
  "message": "Agent assist-rules updated successfully",
  "data": {
    "assistanceTriggers": "Cuando el cliente pide hablar con una persona o se queja repetidamente",
    "assistanceEnabled": true,
    "waitMessage": "Un momento, te conecto con un agente humano."
  }
}

data always reflects the full rules state after the merge, not just the updated fields.