Skip to main content
Create your first AI agent step-by-step. No coding required. This will use a template to build a Meeting Prep Assistant that:
  • Checks your calendar for upcoming meetings.
  • Finds relevant emails about those meetings.
  • Creates a summary document with key discussion points.
Feel free to follow along with this example or customize the instructions and tools for your own agent needs.
You’ll interact with your agent through chat, just like texting a helpful assistant.

Before you start

You’ll need:
  • A LangSmith account (sign up here).
  • A Gmail account.
  • A Google Calendar.
  • An OpenAI or Anthropic API key (Step 1 will show you how to get one).

Step 1. Get your API key

Your agent needs an API key to connect to an AI model. The AI model is what allows your agent to understand and respond to your requests.
  1. Go to platform.openai.com/api-keys.
  2. Click Create new secret key.
  3. Give it a name like “Agent Builder”.
  4. Copy the key (it starts with sk-).
  5. Save it somewhere safe, you’ll need it in Step 2.
Cost: Both services charge based on use.

Step 2. Add your API key to LangSmith

Now you’ll add your API key to LangSmith so your agents can use it:
1

Open Settings

  1. Go to smith.langchain.com.
  2. Click the Settings icon in the bottom left.
2

Go to Secrets

Click the Secrets tab at the top.
3

Add your key

  1. Click Add secret.
  2. For Key, enter:
    • OPENAI_API_KEY (if using OpenAI)
    • ANTHROPIC_API_KEY (if using Anthropic)
  3. For Value, paste the API key you copied in Step 1.
  4. Click Save secret.
Your agent now has access to an AI model to understand and respond to your requests. Next, you’ll create your agent.

Step 3. Create your agent

1

Navigate to Agent Builder

  1. In the LangSmith UI, click the no-code toggle in the lower left-hand navigation.
2

Choose a template

  1. Select Templates in the left-hand navigation.
  2. Select Email Assistant template.
  3. Click Use this template.
If you don’t want to start with a template, you have two other options. From the + New Agent page:
  • Use the chat interface to describe your agent, and it will help you create it step-by-step.
  • Select Create manually instead to build your agent without any pre-filled responses on the configuration page.
3

Authorize accounts

Your agent will ask you to connect your Google accounts:
  1. Click Connect.
  2. Sign in with your Google account.
  3. Review permissions and click Allow.
  4. You’ll be redirected back to LangSmith where your agent will be created.
Your agent only accesses your accounts when working on tasks you give it. You can revoke access anytime in your Google account settings.

Step 4. Customize your agent

1

Customize for meeting prep

  1. When you use a template, you may want to edit the title and description at the top of the configuration page.
  2. Update the Instructions field with the following:
    You are a Meeting Prep Assistant. When I ask you to help me prepare for meetings:
    
    1. Check my Google Calendar for meetings today or tomorrow
    2. For each meeting, search my Gmail for emails about that meeting (use meeting title keywords)
    3. Create a summary document with:
       - Meeting name, time, and attendees
       - Key topics from emails
       - Any action items or decisions mentioned
    4. Ask me if I want you to send this summary to myself via email
    
    Always confirm before sending emails.
    
  3. Click Save Changes.
2

Start a test chat

  1. In the right-hand panel of the configuration page, select the Test Chat tab.
  2. Try out the email assistant in the chat interface:
Help me prepare for my meetings today
3

Agent starts working

Your agent will start work and provide a Continue option for each step that requires your approval.Test chat output view with response including approvals for Gmail tool.

Step 5. Review and approve

1

Read the summary

Your agent will present a meeting prep summary in chat. Review it for accuracy.
2

Give feedback (optional)

If something isn’t working well, tell your agent. For example:
Can you also include links to the emails you found?
Your agent will update the summary.
3

Approve email send (if applicable)

If your agent asks to send the summary via email, you’ll see:“I’d like to send this summary to you. Do you approve?”Click Approve or Edit to modify before sending.

Edit your agent

You may want to update your agent’s instructions or include more tools. You can directly chat with your agent to ask for updates, or you can:
  1. From My Agents in the left-hand navigation, select your Meeting Prep Assistant agent.
  2. Select Edit Agent. Agent in edit mode with a visualization and options to add tools, sub-agents, and triggers.
From the agent’s edit page, you can:
  • Add tools with + Add tool to connect more apps and services like Slack, GitHub, or Linear.
  • Add further helpers with + Add sub-agent to break complex tasks into specialized sub-tasks.
  • Request pauses for reviews on existing tools.
  • Modify existing tools.
  • Explore features that can trigger your agent to start a task.

Next steps

Now that you’ve created your first agent, here’s what to explore:
Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.