Getting Started

First Workflow Tutorial

Build your first AI workflow in minutes


Table of Contents
  1. Accessing the Agent Builder
  2. Understanding the Interface
  3. Creating Your First Workflow
  4. Creating Your First Agent
  5. Running Your Workflow
  6. Common Beginner Tips
  7. Common Mistakes to Avoid
  8. Workflow JSON Export
  9. Next Steps

Accessing the Agent Builder

How to Access

To access the Agent Builder feature:

1

Log In

Sign in to your Ask Sage account

2

Navigate

Navigate to "Agent Builder" in the sidebar

3

Start Building

Create your first workflow

Agent Builder Sidebar

Agent Builder option in the sidebar

Prerequisites: Make sure you have an active Ask Sage account with access to the Agent Builder feature. Some organizations may need to enable this feature first.

Understanding the Interface

Interface Overview

The Agent Builder interface consists of several key areas:

Workflow Canvas

The main area where you build and visualize your workflow

Drag and drop nodes
Connect components
Visual flow representation

Node Palette

Library of available nodes organized by category

Browse node types
Quick access to common nodes
Agent Builder Workflow Interface

Example workflow showing the canvas and node connections

Creating Your First Workflow

Step-by-Step Tutorial

Let's create an RFP/RFI Analysis workflow that extracts key information from solicitation documents and generates a comprehensive response plan:

Quick Import Option: If you encounter any issues while following this tutorial, you can import the complete workflow by copying the JSON code at the bottom of this page and using the Import feature in Agent Builder. This will create the entire workflow automatically.
Create New Workflow

Click the New Workflow button to get started

Step 1: Create a New Workflow

  • Click the "New Workflow" button in the dashboard
  • Give your workflow a descriptive name (for this tutorial, we'll use "RFP-RFI Analysis and Response Plan")
  • Add a description: "This is a comprehensive AI-powered workflow designed to analyze Request for Proposal (RFP) or Request for Information (RFI) documents and generate a structured response plan."
Workflow Name and Description

Enter the workflow name and description

Note: Starting a new workflow automatically sets the workflow to Edit status. Edit mode is required when building a new workflow or modifying an existing workflow. You'll switch to Run mode later when you're ready to test and execute your workflow.

Step 2: Add the First LLM Node for Data Extraction

  • From the Node Palette, locate and drag an "LLM" node onto the canvas
    LLM Node Configuration

    The right side panel is where you configure the settings for the node you are working on

  • Label it "rfi_rfp_data_extraction"
  • Set the model to "gpt-4o-mini" and temperature to 0.1 for consistent extraction
  • Configure the file_variables to "input.source_data_1" to accept the input document
  • Enter the following prompt template:
Please conduct a comprehensive review of the provided solicitation document and extract the following critical information: **Primary Solicitation Details:** 1. **Solicitation Title** - Full official title and solicitation number 2. **Points of Contact (POCs)** - Names, titles, email addresses, and phone numbers for all listed contacts 3. **Contract Type** - (e.g., FFP, CPFF, T&M, IDIQ, etc.) 4. **Contractor Eligibility Requirements** - Including business size standards, certifications (e.g., 8(a), SDVOSB, HUBZone), registration requirements (SAM.gov, CAGE code), and any other qualifying criteria 5. **Scope of Work/Statement of Work** - Detailed description of required services or products 6. **Period of Performance** - Base period duration with specific start/end dates if provided 7. **Option Periods** - Number of option periods, duration of each, and conditions for exercise 8. **Submission Deadline** - Date and time (including time zone) for proposal submission 9. **Requiring Activity** - Agency, department, or office requesting the procurement 10. **Submission Requirements** - Required format, page limits, number of copies, electronic vs. hard copy, and any mandatory templates or forms 11. **Security Clearance Requirements** - Facility clearance level and personnel clearance levels required
Note: There are other configuration options and settings available for LLM nodes, but they will not be covered within this example. For more advanced configurations, refer to the Workflows & Nodes documentation.

Step 3: Add a Save Variable Node

  • Drag a "Save Variable" node onto the canvas to the right of the first LLM node
  • Label it "rfi_rfp_metadata"
  • In the source field, enter "rfi_rfp_data_extraction.response"
  • In the variable name field, enter "evaluation"
  • Connect the output of the first LLM node to the input of this Save Variable node
Save Variable Node Configuration

Save Variable node storing the extraction results

Step 4: Add a Second LLM Node for Questionnaire Analysis

  • Add another "LLM" node and label it "rfi_rfp_questionnaire"
  • Set the model to "gpt-4o-mini" and temperature to 0.2
  • Configure the file_variables to "input.source_data_1"
  • Connect the output of "rfi_rfp_metadata" to this node's input
  • Enter the following prompt template:
Second LLM Node Configuration

Second LLM node configured for questionnaire analysis

1. **Evaluation Criteria** - What factors will be used to evaluate proposals? (e.g., technical approach, past performance, price, small business participation) Include relative importance or weighting if specified. 2. **Mandatory Requirements** - What are the "go/no-go" compliance requirements that could result in proposal rejection? 3. **Key Milestones and Deliverables** - What are the critical delivery dates, performance milestones, and required deliverables throughout the contract period? 4. **Budget/Funding Information** - Is there an estimated contract value, ceiling amount, or funding limitation disclosed?

Step 5: Add Another Variable Assignment Node

  • Add a "Variable Assignment" node labeled "rfi_rfp_analysis"
  • Configure it to save the questionnaire response to a variable named "evaluation_questions"
  • Connect the output from the questionnaire LLM node

Step 6: Add a Third LLM Node for Project Planning

  • Add a third "LLM" node labeled "rfi_rfp_project-plan"
  • Set the model to "google-claude-45-sonnet" for advanced planning capabilities
  • Set temperature to 1 for more creative planning output
  • Configure the file_variables to "source_data_1"
  • Connect it to receive input from the previous variable assignment node
  • Enter the following prompt template:
Create a comprehensive RFI/RFP project plan to respond to the opportunity and generate a Gantt chart. Use Today's date as the start. # Requirements: 1. **Include RFI/RFP project planning best practices and required milestones.** 2. **Incorporate the following teams in the process:** - **Green Team:** Focuses on pricing and financial aspects, ensuring competitiveness and alignment with the client's budget. Identifies potential cost concerns and suggests pricing strategy adjustments. - **Yellow Team:** Reviews the proposal for clarity and completeness, highlighting gaps in information, areas for improvement, and sections that may not fully meet RFP requirements. - **Red Team:** Acts as a critical review group, identifying major issues or non-compliance with RFP criteria that could impact the proposal's viability. {{evaluation}}, {{evaluation_questions}}
Important: The prompt includes variable references {{evaluation}} and {{evaluation_questions}} at the end. These double curly braces reference data from earlier nodes, allowing the project plan to incorporate all previously extracted information. When you copy the prompt, these will be included correctly.

Step 7: Add Final Variable Assignment

  • Add a "Variable Assignment" node labeled "RFI_RFP_Response_Timeline"
  • Configure it to save the project plan response to a variable named "project_plan"
  • Connect it to the project planning LLM node

Step 8: Add a Flat Response Node

  • From the Node Palette, drag a "Flat Response" node onto the canvas
  • Label it "Return Response"
  • Configure the response template to output all three variables: , ,
  • Connect it to the final variable assignment node to complete the workflow
Completed RFI/RFP Workflow

Your completed workflow should look like this, with all nodes connected in sequence. The workflow is intentionally stacked vertically to make it clear and easy to see all components.

Time Estimate: Your first workflow typically takes 15-20 minutes to create. You'll get faster with practice!

Creating Your First Agent

Agent Configuration

Now that your workflow is complete, you need to create an agent to execute it. An agent connects your workflow to a specific AI model and defines how users will interact with it.

Where to Find It: The agent configuration section is located below the Node Palette on the left side when in Edit mode. When you switch to Run mode, the agent configuration will take over the entire left side panel.

Configure Your Agent

  • Set the dropdown to (New agent)
  • In the Name field, enter: RFI-RFP-Agent
  • In the Model field, select: GPT-4.1-mini
  • In the Temperature field, enter: 0
  • Click the "+ Add Variable" button
  • Change the type from "Text" to "File"
  • Update the key from Key_1 to source_data_1
  • Click "Save" to save your agent configuration
New Agent Configuration

Configure your new agent with the appropriate settings

Note: The message variable can be ignored for this use case. It's an optional field that you can use for other workflows that require text-based instructions.
Customization Tip: These configuration values can be modified to whatever you like based on your specific needs. Once your agent is created, you can simply select it from the dropdown menu for future workflows instead of creating a new agent each time.

Running Your Workflow

Testing and Execution

Once your workflow is built and your agent is configured, follow these steps to execute your workflow:

Step 1: Save Your Workflow

Before running your workflow, make sure all your changes are saved. Click the Save button to preserve your workflow configuration, node connections, and agent settings.

Best Practice: Get into the habit of saving frequently while building your workflow. This ensures you don't lose any progress if something unexpected happens.

Step 2: Switch to Run Mode

To execute your workflow, you need to switch from Edit mode to Run mode. Click the mode toggle to change from Edit to Run. In Run mode, the left panel transforms into the agent execution interface where you can interact with your workflow.

Save, Edit, and Run Mode Controls

Use the Save, Edit, and Run mode controls to manage your workflow execution

Step 3: Select Your Agent

Once in Run mode, ensure your agent is selected from the dropdown menu on the left side panel. If you just created your agent, it should already be selected. If you have multiple agents, choose the RFI-RFP-Agent that we configured earlier.

Selecting the Agent

Select your agent from the dropdown menu on the left side panel

Step 4: Provide Input Data

Your workflow is configured to accept a file as input (the source_data_1 variable we set up). Click the file attachment button to upload an RFP or RFI document. This can be a PDF, Word document, or any text-based file containing solicitation information.

Tip: For best results with this tutorial workflow, use an actual RFP or RFI document. The workflow is designed to extract specific information like solicitation details, points of contact, and submission requirements.

Step 5: Run the Agent

With your document attached, click the blue Run Agent button to execute the agent. The workflow will process through each node sequentially, extracting data, analyzing the questionnaire requirements, and generating a project plan.

Adding Document and Running Agent

Attach your document and click the run button to execute the agent

Processing Time: Depending on the complexity of your document and the models selected, execution may take 30 seconds to a few minutes. You'll see progress indicators as each node completes.

Step 6: Review the Output

Once execution completes, review the results in the execution logs on the right side panel.

Execution Logs (Right Side Panel)

The right side panel displays the Activity log showing the execution progress, completion status, and final output for each workflow node:

  • workflow_started - Indicates the workflow has begun execution
  • rfi_rfp_data_extraction - Shows "Started" then "Completed" for the first LLM node
  • rfi_rfp_metadata - Variable assignment node status
  • rfi_rfp_questionnaire - Second LLM node execution status
  • rfi_rfp_analysis - Variable assignment for questionnaire results
  • rfi_rfp_project-plan - Third LLM node generating the project plan
  • event entries - Show detailed execution warnings or information about source data population

Each node will show its status as "Started" and then "Completed" as the workflow progresses. You can also access Previous Runs from the dropdown at the top to review past execution logs.

Activity Logs Panel

The Activity log shows the execution progress and status of each workflow node

Detailed Execution Logs: Click the double arrow icon (>>) at the top of the Activity panel to open the Execution Logs modal. This provides a comprehensive view of all execution details including input parameters, file information, timestamps, and complete JSON data for each step of your workflow.
Execution Logs Full View

The Execution Logs modal provides detailed information about each workflow step

Success Indicators: Look for "Completed" status for each node in the Activity log to confirm successful execution. The final workflow output, including the extracted solicitation data, questionnaire analysis, and project plan, will be displayed in the Execution Logs. If you see errors or warnings, click on the event entries to view detailed error messages and refer to the Troubleshooting section.

Common Beginner Tips

Best Practices for Beginners

Start Simple

  • Begin with a 3-5 node workflow
  • Add complexity gradually as you learn
  • Test frequently as you build

Use Templates

  • Explore pre-built workflow templates (Coming Soon)
  • Modify templates to fit your needs
  • Learn from existing examples
Coming Soon: Pre-built workflow templates are currently under development and will be available in a future release. In the meantime, check out the Use Cases & Examples section for workflow ideas and patterns.

Name Things Clearly

  • Give nodes descriptive names
  • Use clear workflow titles

Save Often

  • Save your work regularly

Test Incrementally

  • Test after adding each major component
  • Don't wait until the entire workflow is built
  • Fix issues immediately when they appear
Learning Resources: Check out the Use Cases & Examples section for real-world workflow templates you can learn from and adapt.

Common Mistakes to Avoid

What to Watch Out For

Missing Connections

  • Every node needs proper input/output connections
  • Disconnected nodes won't execute
  • Check for loose or missing connections

Incorrect Data Types

  • Ensure output types match input expectations
  • Use conversion nodes when needed

Missing Required Parameters

  • Configure all required fields in each node
  • Workflows won't run with missing requirements
Need Help? If you encounter errors, check the Troubleshooting section for solutions to common problems.

Workflow JSON Export

Import Example Workflow

If you encounter any issues building the workflow or want to see how the complete workflow should look, you can import this example JSON directly into Agent Builder. Use the Import feature to load this configuration:

RFP/RFI Analysis Workflow JSON

This is the complete workflow configuration that matches the tutorial above. You can import this JSON to create the entire workflow automatically.

{
  "nodes": [
    {
      "id": "a9aea009-de53-4856-8479-8350104f115e",
      "type": "llm",
      "position": {
        "x": 110.43673959206248,
        "y": -1319.9453248055145
      },
      "config": {
        "file_variables": "input.source_data_1",
        "is_terminal": false,
        "live_search": 0,
        "model": "gpt-4o-mini",
        "persona": 1,
        "temperature": 0.1,
        "prompt_template": "Please conduct a comprehensive review of the provided solicitation document and extract the following critical information:\n\n**Primary Solicitation Details:**\n\n1. **Solicitation Title** - Full official title and solicitation number\n2. **Points of Contact (POCs)** - Names, titles, email addresses, and phone numbers for all listed contacts\n3. **Contract Type** - (e.g., FFP, CPFF, T&M, IDIQ, etc.)\n4. **Contractor Eligibility Requirements** - Including business size standards, certifications (e.g., 8(a), SDVOSB, HUBZone), registration requirements (SAM.gov, CAGE code), and any other qualifying criteria\n5. **Scope of Work/Statement of Work** - Detailed description of required services or products\n6. **Period of Performance** - Base period duration with specific start/end dates if provided\n7. **Option Periods** - Number of option periods, duration of each, and conditions for exercise\n8. **Submission Deadline** - Date and time (including time zone) for proposal submission\n9. **Requiring Activity** - Agency, department, or office requesting the procurement\n10. **Submission Requirements** - Required format, page limits, number of copies, electronic vs. hard copy, and any mandatory templates or forms\n11. **Security Clearance Requirements** - Facility clearance level and personnel clearance levels required\n"
      },
      "label": "rfi_rfp_data_extraction",
      "key": ""
    },
    {
      "id": "64e8c839-b3b4-4fcc-ac97-36ec2b9e793d",
      "type": "variable_assignment",
      "position": {
        "x": 353.7554690090619,
        "y": -1172.8723188257104
      },
      "config": {
        "source": "rfi_rfp_data_extraction.response",
        "variable_name": "evaluation"
      },
      "label": "rfi_rfp_metadata",
      "key": ""
    },
    {
      "id": "72d456c8-b0ef-4deb-82e7-454bb6282d48",
      "type": "llm",
      "position": {
        "x": 617.3576644281344,
        "y": -1174.5799904213595
      },
      "config": {
        "file_variables": "input.source_data_1",
        "is_terminal": false,
        "live_search": 0,
        "model": "gpt-4o-mini",
        "persona": 1,
        "temperature": 0.2,
        "prompt_template": "1. **Evaluation Criteria** - What factors will be used to evaluate proposals? (e.g., technical approach, past performance, price, small business participation) Include relative importance or weighting if specified.\n2. **Mandatory Requirements** - What are the \"go/no-go\" compliance requirements that could result in proposal rejection?\n3. **Key Milestones and Deliverables** - What are the critical delivery dates, performance milestones, and required deliverables throughout the contract period?\n4. **Budget/Funding Information** - Is there an estimated contract value, ceiling amount, or funding limitation disclosed?"
      },
      "label": "rfi_rfp_questionnaire",
      "key": ""
    },
    {
      "id": "e1e1d0c2-97ae-46f2-96af-f13c6a09acf4",
      "type": "variable_assignment",
      "position": {
        "x": 853.9245138504396,
        "y": -1178.6502335700566
      },
      "config": {
        "source": "rfi_rfp_questionnaire.response",
        "variable_name": "evaluation_questions"
      },
      "label": "rfi_rfp_analysis",
      "key": ""
    },
    {
      "id": "e7a7d627-b597-40ee-9a6e-aa86d74cb588",
      "type": "flat_response",
      "position": {
        "x": 726.5549219248967,
        "y": -892.1963473527438
      },
      "config": {
        "response_type": "text",
        "response_template": ",\n, \n"
      },
      "label": "Return Response",
      "key": ""
    },
    {
      "id": "3684d9f8-edc6-4f52-bf22-3159b5dc412e",
      "type": "llm",
      "position": {
        "x": 1116.4845766441988,
        "y": -1176.5930556908138
      },
      "config": {
        "file_variables": "source_data_1",
        "is_terminal": false,
        "live_search": 0,
        "model": "google-claude-45-sonnet",
        "persona": 1,
        "temperature": 1,
        "prompt_template": "Create a comprehensive RFI/RFP project plan to respond to the opportunity and generate a Gantt chart. Use Today's date as the start.\n# Requirements:\n1. **Include RFI/RFP project planning best practices and required milestones.**\n2. **Incorporate the following teams in the process:**\n- **Green Team:** Focuses on pricing and financial aspects, ensuring competitiveness and alignment with the client's budget. Identifies potential cost concerns and suggests pricing strategy adjustments.\n- **Yellow Team:** Reviews the proposal for clarity and completeness, highlighting gaps in information, areas for improvement, and sections that may not fully meet RFP requirements.\n- **Red Team:** Acts as a critical review group, identifying major issues or non-compliance with RFP criteria that could impact the proposal's viability.\n\n,\n\n\n"
      },
      "label": "rfi_rfp_project-plan",
      "key": ""
    },
    {
      "id": "3c52f320-fd8b-4047-bd5d-85af3ead0950",
      "type": "variable_assignment",
      "position": {
        "x": 1325.8426686663436,
        "y": -1169.4092293140811
      },
      "config": {
        "source": "rfi_rfp_project_plan.response",
        "variable_name": "project_plan"
      },
      "label": "RFI_RFP_Response_Timeline",
      "key": ""
    }
  ],
  "edges": [
    {
      "id": "xy-edge__a9aea009-de53-4856-8479-8350104f115eout-64e8c839-b3b4-4fcc-ac97-36ec2b9e793din",
      "source": "a9aea009-de53-4856-8479-8350104f115e",
      "target": "64e8c839-b3b4-4fcc-ac97-36ec2b9e793d",
      "sourceHandle": "out",
      "targetHandle": "in"
    },
    {
      "id": "xy-edge__72d456c8-b0ef-4deb-82e7-454bb6282d48out-e1e1d0c2-97ae-46f2-96af-f13c6a09acf4in",
      "source": "72d456c8-b0ef-4deb-82e7-454bb6282d48",
      "target": "e1e1d0c2-97ae-46f2-96af-f13c6a09acf4",
      "sourceHandle": "out",
      "targetHandle": "in"
    },
    {
      "id": "xy-edge__64e8c839-b3b4-4fcc-ac97-36ec2b9e793dout-72d456c8-b0ef-4deb-82e7-454bb6282d48in",
      "source": "64e8c839-b3b4-4fcc-ac97-36ec2b9e793d",
      "target": "72d456c8-b0ef-4deb-82e7-454bb6282d48",
      "sourceHandle": "out",
      "targetHandle": "in"
    },
    {
      "id": "xy-edge__e1e1d0c2-97ae-46f2-96af-f13c6a09acf4out-3684d9f8-edc6-4f52-bf22-3159b5dc412ein",
      "source": "e1e1d0c2-97ae-46f2-96af-f13c6a09acf4",
      "target": "3684d9f8-edc6-4f52-bf22-3159b5dc412e",
      "sourceHandle": "out",
      "targetHandle": "in"
    },
    {
      "id": "xy-edge__3684d9f8-edc6-4f52-bf22-3159b5dc412eout-3c52f320-fd8b-4047-bd5d-85af3ead0950in",
      "source": "3684d9f8-edc6-4f52-bf22-3159b5dc412e",
      "target": "3c52f320-fd8b-4047-bd5d-85af3ead0950",
      "sourceHandle": "out",
      "targetHandle": "in"
    },
    {
      "id": "xy-edge__3c52f320-fd8b-4047-bd5d-85af3ead0950out-e7a7d627-b597-40ee-9a6e-aa86d74cb588in",
      "source": "3c52f320-fd8b-4047-bd5d-85af3ead0950",
      "target": "e7a7d627-b597-40ee-9a6e-aa86d74cb588",
      "sourceHandle": "out",
      "targetHandle": "in"
    }
  ]
}
How to Import: Copy the JSON above and use the Import feature in Agent Builder to load this workflow configuration. This will create all nodes and connections automatically.

Next Steps


Back to top

Copyright © 2025 Ask Sage Inc. All Rights Reserved.