Get your API key

Lesson 3 of 6

Connect it, then prove it works

The exact prompts for the agent, where the consent screen appears, a five-line test that proves read-only access, and how to disconnect.

9 min Log in to open
One step at a time, like flipping pages.

By the end of this lesson your agent will be connected to your inbox, and you will have proved with a five-line test that it can read, label and draft and that it cannot send.

You need: the route you chose in the last lesson, and ten minutes without interruptions · Time: 9 minutes

  1. Before anything is connected, find out how to remove it. Every route has a removal step, and knowing it in advance does two things: it makes the decision reversible, and it tells you which side of the connection is really in control.

    Route How you disconnect it
    A built-in connector Remove the connection in the assistant's settings, and revoke the app in your Google account
    The Gmail MCP server Remove the server from your agent, then revoke the app in your Google account
    Your own API script Delete the OAuth client in the cloud console, and revoke the app in your Google account
    App password and IMAP Delete the app password, which ends the connection immediately

    Two of those steps, not one. Removing a tool from your agent stops the agent, but the permission still exists on Google's side. Revoking it in your Google account is what actually ends the access.

    Why?

    A connection that you cannot remove in one minute is not a tool, it is a dependency. Set the removal up first and the rest of this lesson feels much less like a leap.

Log in free to read the rest of this lesson

Every lesson is free. A free account unlocks all of them and saves your progress.

Still to come in this lesson:

  1. The setup prompt
  2. What the consent screen is really asking
  3. Prove it before you trust it
  4. The checklist before your first real run
  5. Recap