# Drafts

## Overview

Every automation in Kognitos begins as a **draft**, allowing you to build and refine your instructions through conversation with Kognitos. Drafts are editable workflows that evolve as you make changes.

## Dashboard

Click **Drafts** in the left navigation menu and scroll down below the chat to see a list of your drafts. You'll see the draft name, last modified date, draft version, and published version *(if applicable)*. You can also search for drafts by title or filter by creator.

<div data-with-frame="true"><figure><img src="https://4162850352-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx2dWUsD9HEagjfZqvgHO%2Fuploads%2FqhzP44FIFZ3bAYCWkQu9%2Fdrafts-dashboard.png?alt=media&#x26;token=10ac65c6-8c33-48c2-a547-01ac1054b738" alt=""><figcaption></figcaption></figure></div>

### Actions

Click on any draft to open it. Create a new draft by clicking the <kbd>**+ New Draft**</kbd> button in the top right. To access additional options, click <kbd>**⋮**</kbd> on any draft to:

* **Rename** the draft for better organization
* **Delete** the draft if you no longer need it
* **Publish** the draft to turn it into an automation *(this option will be disabled if Kognitos needs more information from you first)*

<div data-with-frame="true"><figure><img src="https://4162850352-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx2dWUsD9HEagjfZqvgHO%2Fuploads%2FkKJgLPcLLKV46z4ChSQq%2Fdraft-options-gray-border.png?alt=media&#x26;token=5365c860-e6d1-4fa8-ad2d-a783c9c91d10" alt=""><figcaption></figcaption></figure></div>

## Creating a New Draft

These steps describe how to create a **new draft**:

{% stepper %}
{% step %}

#### **Navigate to Drafts**

Click on **Drafts** in the left navigation menu. You'll see a prompt waiting for your instructions.

<div data-with-frame="true"><figure><img src="https://4162850352-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx2dWUsD9HEagjfZqvgHO%2Fuploads%2FF2jLfh9cgX2sklt84sdn%2Fcreate-new-draft.png?alt=media&#x26;token=c23c6ea9-cd11-4f16-9859-f52191b5470c" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

#### **Describe Your Task**

Describe what you want to automate in plain English. You can be as detailed or high-level as you like. You'll refine it together with Kognitos.

<div data-with-frame="true"><figure><img src="https://4162850352-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx2dWUsD9HEagjfZqvgHO%2Fuploads%2F3dGkuQ2qlW7D6ZAHcOCI%2Fwhat-to-automate-example.png?alt=media&#x26;token=e3e1b07b-0d79-477a-a1ac-f064658473b0" alt=""><figcaption></figcaption></figure></div>

{% hint style="success" %}
Have an SOP, process document, or workflow description? Click the <kbd>**+**</kbd> button to upload it directly. Kognitos will read your file and generate a starting point for your automation.
{% endhint %}
{% endstep %}

{% step %}

#### **Refine**

Kognitos will chat with you to understand exactly what you want to automate. It'll ask clarifying questions about your process, help you connect any tools you need, and make sure it has all the details to build your automation correctly.&#x20;

**You might see questions like:**

* "Where are your documents stored?"
* "What format are the invoices in — PDF or CSV?"
* "Should the $500 threshold include or exclude tax?"

{% hint style="success" %}
**Think of this as Kognitos gathering everything it needs to get started:** the details of your process, access to your tools, and clarity on any decisions the automation needs to make.
{% endhint %}

<div data-with-frame="true"><figure><img src="https://4162850352-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx2dWUsD9HEagjfZqvgHO%2Fuploads%2F0n1JId7sP4QEQXI7NAU7%2Fchat-to-refine.png?alt=media&#x26;token=6c1b5500-e439-4df9-9e55-3b6b23b2ccd2" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

#### **Review**

Once Kognitos understands your task and has everything it needs to proceed, it will generate the automation steps. Review the workflow to make sure it matches your expectations. You can edit continue the conversation to make adjustments as needed.

<div data-with-frame="true"><figure><img src="https://4162850352-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx2dWUsD9HEagjfZqvgHO%2Fuploads%2FeejiK6DYv5EP1i9tLJI6%2Fsample-aop.png?alt=media&#x26;token=19f9342f-06ea-4d8a-bce2-3cfb129f4715" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

#### **Add Inputs**

Once you've reviewed the automation document, run and test it by providing inputs. **Inputs** are pieces of information your automation needs at the start of (or during) a run. They can come from you, the Kognitos platform, or external systems. For example:

* A folder path where documents are stored
* A date range for processing invoices
* A recipient email address

<details>

<summary><strong>How to Add Inputs?</strong> 🔢</summary>

1. Click the <kbd>**Inputs & Triggers**</kbd> button at the bottom of the workflow document.

<div data-with-frame="true"><figure><img src="https://4162850352-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx2dWUsD9HEagjfZqvgHO%2Fuploads%2Fb5SmyPZjtLTlIDFXneiv%2Fadd-two-nums-inputs.png?alt=media&#x26;token=7c4de1b1-c2e2-4227-ba22-23f38a5a788c" alt=""><figcaption></figcaption></figure></div>

2. Review the detected inputs — the system automatically found them from your instructions.
3. Add in any required values:
   1. **Text fields** *(names, numbers, references)*
   2. **File uploads** *(PDFs, Excel files, images)*
   3. **Dates, times, or selections from dropdowns**
4. Click <kbd>**Save**</kbd> to save your inputs.

</details>

{% hint style="danger" %}
If you click ▶️ to **run** the draft without providing inputs first, you'll see the **Almost There - Add Inputs First** screen prompting you to add them.
{% endhint %}
{% endstep %}

{% step %}

#### **Run**

Click on the <kbd>▶️</kbd> button in the top-right to execute your workflow.

After the run completes, you can:

* **Review** the outputs
* **Back to edit** the automation if needed
* **Run again** to re-execute
* **Publish** the draft to turn it into an automation
* **Chat** with the **Run Assistant** for further questions or clarifications
  {% endstep %}
  {% endstepper %}

## Triggers

Webhook and email triggers are configured from the draft editor. Click <kbd>Inputs & Triggers</kbd> in the right panel to open the trigger configuration dialog.

### Webhook Trigger

A webhook trigger starts a run when an external system sends an event. This is useful for connecting Kognitos to other tools, CI/CD pipelines, or custom applications.

<div data-with-frame="true"><figure><img src="https://4162850352-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx2dWUsD9HEagjfZqvgHO%2Fuploads%2Fgit-blob-8f881f589c543c834852803279459a41c90da3b3%2Fautomation-trigger-webhook-setup.png?alt=media" alt=""><figcaption></figcaption></figure></div>

{% stepper %}
{% step %}
**Select an integration**

Choose the integration that will send the webhook event.
{% endstep %}

{% step %}
**Select a connection**

Pick the connection to use for this integration.
{% endstep %}

{% step %}
**Select an event**

Choose the specific event that should trigger the automation.
{% endstep %}

{% step %}
**Save**

Click <kbd>Save Trigger</kbd> to activate. The automation will run whenever the selected event fires.
{% endstep %}
{% endstepper %}

### Email Trigger

An email trigger starts a run whenever an email is received at a unique address generated by Kognitos. The email content and attachments are passed to the automation.

<div data-with-frame="true"><figure><img src="https://4162850352-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx2dWUsD9HEagjfZqvgHO%2Fuploads%2Fgit-blob-425621daec05cfb459d389a9d3935e3b2d5a38df%2Fautomation-trigger-email-setup.png?alt=media" alt=""><figcaption></figcaption></figure></div>

{% stepper %}
{% step %}
**Copy the mailbox address**

Kognitos generates a unique email address for this automation (e.g., `automation-abc123@us-1.kognitos.com`). Copy it and use it as a forwarding destination or share it with the people or systems that should trigger runs.
{% endstep %}

{% step %}
**Configure email filters (optional)**

Expand **Email Filters** to restrict which emails trigger a run. You can filter by sender address, CC address, or subject line keywords.

<div data-with-frame="true"><figure><img src="https://4162850352-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx2dWUsD9HEagjfZqvgHO%2Fuploads%2Fgit-blob-c4f0f82a1e40b3f2b9b10e719d6456c15a74f50f%2Fautomation-trigger-email-filters.png?alt=media" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
**Save**

Click <kbd>Save Trigger</kbd> to activate. Any email matching your filters will start a new run.
{% endstep %}
{% endstepper %}

## Publishing

When your draft is working as intended, you can publish it to promote it to an automation. An **automation** is the locked version of a draft that can be executed repeatedly and reliably. Once published, the workflow is moved from **Drafts → Automations**. You can always return to edit it by selecting "Open in Drafts" from the Automation.

### Versioning

Publishing a draft creates a **new major version** (v1, v2, v3, etc.) of your workflow. To make any updates, you'll need to edit the draft again and publish a new version.

## Best Practices

The following tips can help you build drafts more efficiently and get more reliable results.

### 1. Work Incrementally

Instead of asking Kognitos to do everything at once, build and verify in small steps.

<details>

<summary><strong>How to Work Incrementally</strong></summary>

For example, instead of asking Kognitos:

> "Extract all the fields from this page."

Start with a few fields and make sure they're correct before moving on:

> "Extract the first five fields from this page."

When you work in small batches, a mistake is easier to spot and fix:

> "The vendor name is incorrect. Use the one in the header, not the footer."

</details>

### 2. Be Specific

Vague instructions can lead to unintended behavior. Tell Kognitos what you want the automation to produce or how it should decide, not just what to do in general.

<details>

<summary><strong>How to Be More Specific</strong></summary>

Instead of:

> "Validate the totals."

Try:

> "The total amount should equal the sum of all line items. Flag any invoice where it doesn't match."

The more precise you are, the less back-and-forth is needed to produce a draft.

</details>

## Frequently Asked Questions

<details>

<summary><strong>What does "Neurosymbolizing..." mean?</strong></summary>

Neurosymbolizing..." appears while Kognitos is processing your instructions and converting them into executable automation steps. The term combines "neuro" (neural networks/AI) with "symbolic" (logical rules and structures), reflecting how Kognitos blends natural language understanding with structured workflow logic.

</details>

<details>

<summary><strong>Can I work on multiple drafts at once?</strong></summary>

Yes. You can have as many drafts in progress as you need. Each one is independent.

</details>

<details>

<summary><strong>What happens if I close a draft before finishing?</strong></summary>

Your work is automatically saved. Just open the draft again from the Drafts list to continue where you left off.

</details>

<details>

<summary><strong>Can I go back to a draft after publishing?</strong></summary>

Yes. New changes will create a new version of the automation.

</details>

<details>

<summary><strong>Why can't I publish my draft?</strong></summary>

The publish option will be disabled if Kognitos needs more information from you to complete the workflow. Open the draft to continue the conversation and provide any missing details; the publish option will then become available.

</details>
