AI Agents

AI Agent Workflow Setup — FAQ

_Last updated: March 2026 | Ask Patrick (askpatrick.co)_


Getting Started

What is an AI agent workflow?

An AI agent workflow is a system where one or more AI models take actions autonomously — browsing the web, writing files, calling APIs, running code, or sending messages — based on a goal you define. Unlike a simple chatbot, an agent loop runs until the task is done (or it gets stuck and asks you).

What do I actually need to get started?

At minimum:

You do NOT need to be a developer. Many agent setups work entirely through config files and prompts.

What's the difference between a chatbot and an agent?

| Chatbot | Agent | |---|---| | Responds once per message | Loops until task complete | | No tools | Has tools (web, files, APIs) | | Forgets between sessions | Can persist memory to files | | You drive | It drives |


Choosing a Runtime

Which agent runtime should I use?

Depends on your use case:

Can I run agents locally without paying per API call?

Yes. Use Ollama with a local model like Mistral, Llama 3, or Qwen. Quality is lower than GPT-4o or Claude for complex reasoning, but for structured tasks (file ops, simple automation) it works well and costs nothing after setup.


Prompt Engineering for Agents

Why does my agent keep going in circles?

Usually one of three things:

  1. Vague goal — "do research" is not enough. Write "search for X, summarize the top 3 results, save to research.md"
  2. No exit condition — tell the agent explicitly when it's done
  3. No tool feedback — make sure tool results are included in the context so the agent knows what happened

What's a system prompt and why does it matter?

The system prompt is the agent's identity and ruleset — loaded at the start of every session. A good system prompt answers:

Weak system prompts = drifting, confused agents. Strong ones = focused, reliable agents.

Should I use one big agent or multiple smaller ones?

Start with one. Add more only when you hit real limits. Multi-agent systems are more powerful but harder to debug. A common pattern:


Memory & Persistence

How do agents "remember" things?

Four main patterns:

  1. In-context — dump relevant info into the prompt each session (fast, cheap, limited by context window)
  2. File-based — agent reads/writes markdown or JSON files (simple, durable, great for personal agents)
  3. Vector DB — embed memories for semantic search (good for large knowledge bases — Chroma, Weaviate, Qdrant)
  4. Structured DB — SQL or key-value store for structured facts (appointments, preferences, etc.)

For most personal agents, file-based memory is enough and requires zero infrastructure.

How do I prevent my agent from forgetting important context?


Tools & Integrations

What tools should every agent have?

The essential toolkit:

Add specialized tools as needed: calendar, email, database, browser automation.

How do I connect my agent to external services?

Most integrations work via REST APIs. Pattern:

  1. Get an API key from the service
  2. Store it in an env file (.env or ~/.my-agent-env)
  3. Write a tool definition that makes the API call
  4. Add the tool to your agent's available tools list

Never hardcode keys in prompts or config files. Use environment variables.


Reliability & Safety

My agent keeps making mistakes. How do I fix it?

How do I prevent agents from doing something dangerous?

Three layers:

  1. Prompt guardrails — explicit "do not" rules in the system prompt
  2. Tool restrictions — only expose tools the agent actually needs
  3. Human-in-the-loop — for high-stakes actions, require confirmation before executing

When in doubt, add confirmation steps. An extra "are you sure?" is a small price for not accidentally deleting a folder or sending an email you didn't mean to send.


Going Further

What should I build first?

Best first agent projects (in order of difficulty):

  1. Daily briefing bot — reads calendar + weather + email, sends you a morning summary
  2. Research agent — given a topic, searches the web and writes a report
  3. Support agent — answers questions about your product using a knowledge base
  4. Personal assistant — always-on agent that handles scheduling, reminders, and small tasks

Where can I learn more?


Want the full playbook?

Get copy-paste AI templates, prompt frameworks, and agent patterns — all in one place.

Get Access — It’s Free

No credit card. No fluff. Just the good stuff.