Crear oportunidad en Salesflare, con una API

Crea una oportunidad para una cuenta, en una etapa de un pipeline. account es obligatorio. Devuelve la nueva oportunidad con su id.

Identificador
salesflare_create_opportunity

La llamada

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

{
  "customer_toolkit": "<connection UUID>",
  "arguments": {
    "account": 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
accountintegerSíId of the account, from List accounts or Create account.
namestringNoName of the opportunity.
stageintegerNoId of the stage, from the stages of List pipelines. The stage also sets the pipeline.
valuenumberNoValue of the deal, in the currency of the pipeline.
probabilitynumberNoChance of winning, in percent.
close_datestringNoClose date, in ISO 8601.
main_contactintegerNoId of the main contact, from List contacts.
ownerintegerNoId of the user who owns the opportunity, from List users.
assigneeintegerNoId of the user assigned to the opportunity, from List users.
tagsarrayNoTag names.
customobjectNoCustom field values, keyed by the API name of each custom field of the team.

Conexiones posibles

Tu cliente conecta su cuenta de Salesflare 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/salesflare_create_opportunity. 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.