Kissflow DocsCentro de ayuda
Este artículo aún no está disponible en español. Se muestra la versión original en inglés.

Run an agent on schedules and events

Use an integration trigger and an HTTP call to start an agent on a schedule or business event.

Create a Kissflow integration to start an agent when a schedule or business event occurs. You will choose a trigger, map its values to the agent inputs, and start a background run with an HTTP call. Decide how the results will be saved before turning the integration on.

Video: Run an agent on schedules and events

Choose a trigger

Work begins whenTrigger route
A recurring date arrivesScheduler by Kissflow
A record is created or submittedProcess, board, or dataform item event
A process reaches an approval stepWorkflow step entry, exit, or approval event
A record changesBoard, dataform, or dataset update event
An external service calls KissflowWebhooks by Kissflow
Another application changesAn available connector trigger, such as an email or issue event

The scheduler supports daily, weekly, monthly, and yearly schedules. One schedule runs at most once a day. Add separate schedules if you need more runs.

Example: run an agent every Monday

  1. Click + Create and select Integration. Give it a name and description.
  2. Search for the connector Scheduler by Kissflow and pick the Weekly trigger.
  3. Set Days of the week to Monday, set Hour of the day, and set when the schedule ends with Specific end date or After number of occurrences.
  4. Click Next to test the trigger, then Done.
  5. Add the HTTP connector's Make an HTTP call (POST) action that starts the agent. See the steps below.
  6. Switch on the toggle to activate the integration.

The time you choose uses the time zone in your My settings > Format settings. See Scheduler by Kissflow.

No person is present when a scheduled run starts, and agent tools act directly. Have the agent prepare a draft item and use an app workflow for human approval. See Responsible AI.

Configure the integration

  1. Prepare a published agent and note its account, app, and agent IDs. Review the required inputs under Blueprint > Custom Agents.
  2. Create an access key for a service account with View permission on the app. This key authorizes starting the run; each agent tool uses its own connection.
  3. Create an integration and choose the schedule or business-event trigger.
  4. Add the HTTP connector's Make an HTTP call (POST) action. Use the start address in the Agent API reference.
  5. Set X-Access-Key-Id and X-Access-Key-Secret in the request headers, and set Content-Type to application/json. Map trigger values inside the InputData object in the request body.
  6. Plan the next step using one of the result-handling routes below. Save the returned ExecutionId with the business item if your integration will read the run later.
  7. Test with safe data, then turn the integration on.

The Schedule weekly trigger from Scheduler by Kissflow in an integration, configured to repeat every 1 week on Monday at 09:00, with the integration switched off

Arrange results handling

An integration continues after the start request. The HTTP response supplies a run ID rather than finished results. Choose either route:

RouteSetup
Agent saves or sends its findingsAdd an appropriate tool, such as a dataform update or channel message, and describe when to use it in the instructions.
Integration reads the findingsAdd a Delay step of at least one hour, then use an HTTP GET step with the saved ExecutionId. Check the run Status before using outputs.

In an integration, read the run in a later step to get its result. A delay is a later read, not a completion signal. Handle Failed runs and any run that is still Queued, NotStarted or Running without starting a duplicate.

Prevent repeated starts

If the agent writes to the record that triggered it, add a condition that excludes records already processed. For example, use an app field to mark the review as handled and check that field before starting another run. This condition is part of your integration design.

After a first app deployment, integrations arrive switched off. Reconnect target-environment connections, test them, and enable the integration there. Later deployments also switch off integrations that are new, unarchived, or have changed triggers.

En esta página