Kognitos Automations
Overview of the Kognitos Automations integration.
Overview
Kognitos Automations lets one automation run another and track how it went. Use it to split work between a parent automation that fans out and a child automation that handles a single item. Each invocation creates its own run, so one item failing leaves the others untouched and every item ends with a status you can report on or retry.
Setup
The following integrations need to be connected to your Kognitos workspace:
Kognitos Automations
Steps
Follow these steps to connect the integration in Kognitos:
Configure
Add a name for the connection. You'll be prompted for authentication details if needed. Then, click on Connect.
Credentials
This integration connects to a Kognitos workspace, which can be the workspace the automation already runs in or a different one. You need three values.
1. API Key
Open API Keys
Click on your name or profile avatar in the bottom-left corner to open the user menu, then select API Keys.
Create a Key
Click Create API Key, then scope the key to the workspace whose automations you want to invoke. See API Keys for the full set of options.
Copy the Key
Copy the key as soon as it is created. It is shown only once.
2. Organization Id and Workspace Id
Open the target workspace in Kognitos and read both values from the address bar. A workspace URL has the form /o/<organization-id>/w/<workspace-id>.
Authentication
Use one of the following authentication methods to connect this integration in Kognitos. Each method has its own configuration requirements.
Connect using API Key, Organization Id and Workspace Id
Connect to a Kognitos workspace using an API key.
API Key
An API key generated in the Kognitos UI.
sensitive
Organization Id
The organization that owns the workspace.
text
Workspace Id
The workspace whose automations you want to invoke.
text
Configuration
The following options control how this integration reaches Kognitos. Both have defaults and only need changing in specific cases.
base url
Root URL of the Kognitos deployment to call, without a trailing path.
text
https://app.us-1.kognitos.com
timeout
Seconds to wait for any single call to the Kognitos API.
number
30.0
Set either option in plain language:
Actions
The following actions are available in the Kognitos Automations integration:
1. Await a kognitos run's completion
Wait until a run finishes, then report how it went.
2. Get a kognitos run
Look up a run you already know the id of.
3. Get a kognitos run's status
Check how a run is doing, without waiting for it.
4. Invoke a kognitos automation
Start another automation and return its run straight away.
5. Invoke a kognitos automation for each item
Run one automation once per item and report how each one went.
6. List a kognitos automation's runs
List recent runs of an automation, newest first.
7. List the kognitos automations
List the automations this connection can invoke.
Concepts
Kognitos run
A single execution of a Kognitos automation.
run_id
The run's unique identifier.
text
automation_id
The automation that was invoked.
text
stage
Whether the draft or the published version was invoked.
text
Kognitos run status
The observed state of a Kognitos run.
run_id
The run this status describes.
text
automation_id
The automation the run belongs to.
text
state
One of pending, executing, stopping, stopped, awaiting guidance, completed or failed.
text
is_finished
True when the run will not change state on its own.
boolean
outputs
The run's outputs. Only populated once it has completed.
optional[json]
error_id
The identifier of the error that failed the run. Worth recording alongside a failed item: it is what support needs to find the failure.
optional[text]
error_description
Why the run failed, when it failed.
optional[text]
exception_id
The Guidance Center exception blocking the run, when it is awaiting guidance.
optional[text]
exception_description
What that exception says.
optional[text]
timed_out
True when a wait gave up before the run finished. The run itself is unaffected and keeps going.
optional[boolean]
Kognitos automation
An automation in the connected Kognitos workspace.
automation_id
The automation's unique identifier.
text
display_name
The automation's name as it appears in the product.
text
description
What the automation does, if its author wrote one.
optional[text]
input_names
Names of the inputs the automation accepts.
optional[list of text]
latest_published_version
The newest published version, if any.
optional[text]
Last updated
Was this helpful?

