Actualizar negocio en Agendor, con una API

Actualiza los campos enviados y devuelve el negocio en data. dealStage mueve el negocio de etapa, y dealStatusText lo gana, pierde o reabre.

Identificador
agendor_update_deal

La llamada

POST https://connect.reportei.com/api/tools/agendor_update_deal/execute
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
Content-Type: application/json
Accept: application/json

{
  "customer_toolkit": "<connection UUID>",
  "arguments": {
    "id": 1
  }
}

Tu sistema envía el id de la conexión de tu cliente y los argumentos de la tool. Los headers son los mismos de toda la API de Connect: el token de tu producto y el token de tu cliente.

Parámetros

Las descripciones de los parámetros siguen la documentación oficial de la app, en inglés.

ParámetroTipoObligatorioDescripción
idintegerSíId of the deal, from List deals or one of the create deal tools.
titlestringNoTitle of the deal.
descriptionstringNoNotes about the deal.
valuenumberNoMonetary value of the deal.
ownerUserintegerNoId of the user who owns the deal, from List users.
dealStageintegerNoPosition of the new stage in the funnel, starting at 1: the sequence of the stage in List funnels, not its id. Send funnel too when the deal is not in the default funnel.
funnelintegerNoId of the funnel of the new stage, from List funnels.
dealStatusTextstringNowon or lost finishes the deal, and ongoing reopens it.Valores: ongoing, won, lost
lossReasonobjectNoWhy the deal was lost. Only with dealStatusText lost.
endTimestringNoWhen the deal was finished, in ISO 8601.
customFieldsobjectNoCustom field values keyed by the identifier of each custom field configured in Agendor.

Conexiones posibles

Tu cliente conecta su cuenta de Agendor una sola vez, con uno de los modos de abajo. La misma conexión sirve para todas las tools del toolkit.

Clave de API

Tu cliente pega la clave de la app en una pantalla de Connect, o tu sistema envía la clave con POST /api/customer-toolkits, sin pantalla.

La respuesta

Si la llamada tiene éxito, Connect conserva el status y el cuerpo de la respuesta de la app. Los errores HTTP devueltos por la app usan el objeto {error, api_error}; la autenticación o validación pueden fallar antes de la ejecución. El header X-Toolkit-Execution-Id identifica la ejecución registrada, disponible en GET /api/tools/executions/{uuid}.

Lista para agentes de IA

El input de esta tool es un JSON Schema, disponible en GET /api/tools/agendor_update_deal. Se convierte en la definición de tool de tu agente sin conversión.

Mira Connect aplicado a tu producto.

Pruébalo durante 15 días sin tarjeta, o cuéntale tu caso a nuestro equipo.