Lesson 17medium15 min

Adding and Configuring the AI Agent Node

Deploy the core LangChain AI Agent node and author its system prompt and persona.

Learning Objectives

  • Deploy the AI Agent (Tools Agent) node on the canvas
  • Craft a comprehensive system prompt defining role, rules, and output formatting
  • Configure max iterations and execution safeguards

Adding and Configuring the AI Agent Node

Now we add the central node: the AI Agent node.

Node Setup

  1. Search for AI Agent in the node panel and add it to the canvas.
  2. Agent Type: Select Tools Agent.
  3. Max Iterations: Set to 8.
Advertisement

Crafting the System Prompt

In the System Message property, enter:

You are an Elite Executive AI Assistant to the CTO.
Your responsibility is to analyze the user schedule, local weather, and industry news, then synthesize a concise, high-impact morning intelligence brief.

OPERATIONAL INSTRUCTIONS:
1. First, check today's date using your date/time capability.
2. Query Google Calendar for all events scheduled today.
3. Check the weather forecast for the primary meeting locations. Pay special attention to any outdoor events.
4. Perform a search for breaking news on generative AI and software engineering.
5. Format your final report into clear sections:
   - Executive Summary
   - Daily Agenda & Meeting Priorities
   - Weather & Transit Advice
   - Industry Intelligence (Top 3 items)
6. Tone: Direct, professional, data-dense. Avoid generic greetings.

Next, we must provide the agent with its model brain.