Detailed Setup

Detailed setup path

Set up a tenant, connect Google Workspace, and govern an agent through policy.

This walkthrough expands the quick start with the exact dashboard areas to visit. Use it for either MCP agents or botYguard hosted agents.

Log in to Dashboard

What You Are Setting Up

botYguard creates a tenant boundary, stores the runtime provider keys your agents use, connects integrations such as Google Workspace, and applies policies before agent actions reach those services.

TenantThe workspace boundary for profiles, keys, integrations, agents, policies, and logs.
ProfileThe botY profile describes the agent type and how it should be governed.
PolicyThe policy grants only the specific Google Workspace actions the agent needs.

Before You Start

You need:

  • a botYguard account using Google, Microsoft identity, or email sign-in
  • owner or admin access to the generated tenant
  • at least one model provider key, such as OpenAI or Anthropic
  • a Google account you want to connect to botYguard
  • optional Discord access if you want channel approvals or redaction terms

If you belong to more than one tenant, use the tenant switcher first. Most setup mistakes come from creating integrations or policies in the wrong tenant.

1. Sign In And Confirm Tenant

Sign in at the dashboard with Google, Microsoft identity, or email. botYguard generates a tenant during setup.

Confirm:

  1. The active tenant is the one you want to configure.
  2. Your role is owner or admin.
  3. Teammates who manage setup are invited to the same tenant.
Account and tenant security page showing linked identities, invite member form, and tenant members.
Confirm the active tenant, linked identities, member role, and tenant membership before configuring agents.

2. Create A botY Profile

Create a botY profile, also called an agent profile, for the agent type you plan to run.

Use MCP when you are connecting an existing agent or an agent runtime you do not control. Use Hosted when you want botYguard’s custom agent deployed for the user’s specific use case.

botY profile page showing the profile creation entry point.
Open the botY profile workflow before choosing the agent model.
botY profile configuration screen showing profile type and setup fields.
Configure the profile type and setup fields for the agent you plan to govern.

3. Add Provider Keys

Go to Settings -> Provider Settings.

Provider keys are the runtime model credentials used by your agents, policy generator, and provider gateway execution. They are not Google Workspace permissions and they are not Discord credentials.

To add a key:

  1. Choose the provider, such as openai or anthropic.
  2. Add a clear label, such as Team OpenAI Key or Policy Drafting Anthropic.
  3. Paste the API key.
  4. Select Create.

After the key is saved, botYguard shows the credential by ID, provider, label, and fingerprint. The raw secret is not shown again.

You can also add admin keys when you want botYguard to pull usage details from the provider. Keep labels specific so admins can tell which keys are runtime keys and which are admin or usage keys.

Provider Settings page with a create credential form and credential status cards.
Create runtime credentials here. The dashboard stores the secret and shows only fingerprints later.

4. Set Redaction Terms

Use the /botyguard redact set slash command in Discord.

Add terms when prompts, tool results, or chat messages may include customer data, personal data, confidential files, or private Discord content. You do not need to enable a dashboard setting first.

botYguard redacts configured values before the agent sees them, then rehydrates the safe chat response so the user can read the original context where appropriate.

Agent view showing redacted placeholders instead of sensitive words.
The agent receives redacted placeholders instead of the sensitive values configured with the slash command.
Discord chat response showing redacted content rehydrated for the user.
The chat response is rehydrated so the user sees the intended context while the agent remains shielded from sensitive information.

5. Connect Discord

Go to Integrations -> Discord.

Connect Discord so botYguard can support mediated chat, channel approvals, and slash commands such as /botyguard redact set.

To connect:

  1. Link the Discord server.
  2. Confirm the server status.
  3. Assign the channels botYguard should use.
  4. Test the slash command in the configured server.
Discord integration page with server linking, server status, and channel assignment fields.
Connect Discord, assign channels, and confirm the server is ready for approvals and redaction commands.

6. Connect Google Workspace

Go to Integrations -> Google Workspace.

Connect Google Workspace so the agent can access Drive, Gmail, and Calendar through botYguard policies. More integrations and Google Workspace features will be added over time.

To connect:

  1. Confirm the Workspace MCP sidecar is reachable.
  2. Select Connect with Google.
  3. Complete the Google consent flow.
  4. Return to botYguard and select Refresh.
  5. Confirm the account appears as connected.
The connected account should show status, granted scopes, and last updated time.
Important

Connecting Google does not grant access to every agent. Policies grant Drive, Gmail, and Calendar actions.

7. Create A Policy

Go to Policy.

Use the policy generator when you want the AI assistant to draft a policy from plain English. It uses your provider API keys. Use the form directly when you already know the exact integration, resource, action, and effect.

Example prompt for the generator:

Create a policy that allows read-only Google Drive access for this work agent.
Audit every action and deny write or delete actions.

Review the draft before saving. For a safe first policy, allow only read access to a specific Drive folder, audit all actions, and require approval or denial for writes.

Create a focused policy from a plain-English prompt, review the draft, and save it only after the scope is correct.

8. Assign The Policy

After the policy is created, assign it to an agent target.

  • Assign to an agent type when every agent with that profile should inherit the same baseline.
  • Assign to a specific agent when you want tighter control for one agent instance.

If the agent does not exist yet, create the agent first, then return to the policy assignment.

Policy assignment screen showing controls for attaching a policy to an agent target.
Assign the policy to the right target so the intended agent or agent type receives the governance rules.

9. Create The Agent

Decide whether the agent is a container hosted agent or an MCP agent.

Container Or Hosted Agent

Choose this when you want botYguard’s custom agent deployed for the user’s specific use case. Select the botY profile, provider credential, and any required secrets for that agent.

Deploy agent screen showing profile, provider credential, and agent configuration fields.
Deploy the hosted agent with the correct botY profile, provider credential, and required configuration.

MCP Agent

Choose this when an existing external agent needs to connect through botYguard.

  1. Generate an MCP API key when the client can send a bearer token.
  2. Generate an MCP URL connector when the client needs a pre-authorized URL.
  3. Choose the MCP provider, botY profile, role, and expiration.
  4. Copy the credential immediately if the dashboard shows it once.
  5. Add the MCP URL or key to the external agent.
MCP API Keys form with client name, agent name, provider, profile, role, TTL, and expiration fields.
Use MCP API keys when the external MCP client can send a bearer token.
MCP URL Connectors form with connector name, agent name, provider, profile, role, and TTL fields.
Use MCP URL connectors when the external MCP client needs a pre-authorized URL.
Credential rule

Do not paste provider secrets, Google refresh tokens, Discord tokens, or botYguard admin credentials into external agent instructions.

10. Validate The Setup

Run one simple request, such as asking the agent to list or summarize files in the allowed Google Drive scope. Then check:

  1. The Discord integration is active if you use approvals or redaction commands.
  2. The Google Workspace connection is active.
  3. The agent or agent type has the policy assignment.
  4. The policy decision matches the expected allow, deny, audit, or approval behavior.
  5. Configured redaction terms are hidden from the agent and rehydrated in chat where appropriate.
Discord success preview showing a governed agent listing allowed workspace items.
Confirm the agent can complete an allowed list request through the governed Discord flow.
Discord success preview showing a governed agent summary response.
Confirm the agent can summarize allowed content and return the result through Discord.

For ongoing questions, see the FAQ.