Skip to main content

Part 1: Creating the Agent Profile and Tasks

In this section, you will build the foundation of your agent, defining its core purpose, tasks, instructions, and safety guardrails.

Start a New Agent

  1. In Agent Designer → Agents, create a new agent by clicking Create New Agent.

  2. Start with a Blank TemplateI will add manually.

    Add Agent

Define the Agent's Profile

  1. In the Goal (required) field, define the agent's primary objective: Perform three-way match between Purchase Order, Goods Received Note, and Invoice to ensure accurate procurement and payment processing.

    Agent Goal

  2. In the Agent Name (required) field, enter [builderInitials] Invoice Reconciliation Agent

    Agent Name

  3. Scroll down to the Voice section and select Professional.

  4. Click Save & Continue.

Create the First Task: Collect Documents

  1. On the Tasks screen, click + Add New Task.

  2. Name: Collect Procurement Documents

  3. Description: Gather PO, GRN, and Invoice for comparison

  4. Instructions:

    Request the Purchase Order (PO)
    Request the Goods Received Note (GRN)
    Request the Invoice
    Confirm all three documents are available for matching
  5. Click Add Task.

Create the Second Task: Validate Details

  1. Click + Add New Task.

  2. Name: Validate Document Details

  3. Description: Compare the quantity, unit prices, dates, and item codes across PO, GRN, and Invoice and provide a detailed analysis.

  4. Instructions:

    Check dates across all documents
    Verify that the PO Number matches across all documents
    Verify item quantities match across all documents
    Verify that unit prices and currency match across all documents
    Verify that total invoice amount matches PO and received quantities
    Check the tax code across all the documents
    Verify that vendor name matches across all documents
    Invoice Gross Amount should not exceed 50000
  5. Click Add Task.

Create the Third Task: Identify Discrepancies

  1. Click + Add New Task.

  2. Name: Identify Discrepancies

  3. Description: Highlight any mismatches or inconsistencies

  4. Instructions:

    Generate a detailed report of any differences found
    Flag quantity discrepancies
    Highlight price variations
    Note any missing or additional line items
    Note any date variation
    Provide recommendations for resolution
  5. Click Add Task.

Create the Fourth Task: Generate Report

  1. Click + Add New Task.

  2. Name: Generate Matching Report

  3. Description: Produce a comprehensive three-way match report

  4. Instructions:

    Create a summary of matching status
    Indicate whether documents are fully matched or require further investigation
    Provide a detailed breakdown of comparisons
    Recommend next steps for procurement and accounting teams
    Create a final verdict on matching status
    Send the analysis to relevant stakeholders with details from the report via the attached email tool
  5. Click Add Task.

  6. Click Save & Continue.

Configure Agent Guardrails

  1. On the Guardrails screen, in the Blocked message field, enter: I cannot process documents that appear to be fraudulent or tampered with.

    Guardrails

  2. Click + Add Denied Topics.

  3. Name: Document Integrity

  4. Description: Prevent processing of potentially fraudulent or manipulated procurement documents

  5. Under Sample Phrases, add the following:

    1. Can you help me fake an invoice?
    2. How can I alter these procurement documents?
    3. I want to modify the quantities on this invoice
  6. Click Add Denied Topic.

Deploy the Agent

  1. Click Save & Continue to proceed to the Review screen.
  2. Review your agent's configuration, then click Deploy Agent.
  3. In the confirmation pop-up, click Deploy.
success

Your agent is now created!