Lymnus Logo
Docs Agents & Automation

Creating Your First Agent

A step-by-step guide to building and running a workflow agent.

Updated 1 day ago 4 min read 9 views

This guide walks you through building a simple agent that extracts data from a document and exports it to a CSV file.

Before you start

Make sure you have at least one project with uploaded documents. You will also need a Starter plan or above to use agents.

Step 1 — Open the Agents section

  1. Click Agents in the sidebar.

  2. Click New Agent in the top-right corner.

  3. You can start from a blank canvas or choose a template. For this guide, choose Invoice Extractor as a starting point.

Step 2 — Understand the canvas

The agent canvas is a visual flow editor. Nodes appear as cards on the canvas. You connect them by dragging from the output handle of one node to the input handle of another. The flow executes from top to bottom (or left to right, depending on how you lay it out).

Step 3 — Configure the extraction node

  1. Click the Data Extraction node to open its configuration panel.

  2. Under Document Type, select the type of document you are processing (e.g. Invoice).

  3. Under Schema Fields, define the fields you want to extract — add a row for each field with its name and expected data type.

  4. Click Save.

Step 4 — Add an export node

  1. Click the + button on the canvas to add a new node.

  2. Select Export App.

  3. In the configuration panel, choose CSV as the export format.

  4. Connect the Data Extraction node to the Export App node by dragging from its output handle.

Step 5 — Name and save your agent

Give your agent a clear name (e.g. "Monthly Invoice Extractor") and click Save Agent.

Step 6 — Run the agent

  1. Click Run Agent.

  2. Select the documents you want to process.

  3. Click Confirm and Run.

The agent will process your documents node by node. When complete, the output CSV will be available for download from the agent run history.

Was this page helpful?