How to Set Up Google Agent Builder
Connect AuditSwarm to Google Agent Builder (Gemini platform) for AI-assisted audit management.
Prerequisites
- Google Cloud account with Agent Builder access
- AuditSwarm account
Configuration
Configure via Agent Builder UI with these settings:
| Setting | Value |
|---|---|
| OpenAPI Spec | https://demo.auditswarm.com/api/openapi-v3 |
| Execute Endpoint | https://demo.auditswarm.com/api/agent/execute |
| Auth Type | OAuth 2.1 (Custom) |
| Authorization URL | https://demo.auditswarm.com/api/oauth/authorize |
| Token URL | https://demo.auditswarm.com/api/oauth/token |
Setup Steps
Step 1: Create an Agent
- Go to Google Agent Builder
- Create a new agent or open an existing one
- Navigate to Tools or Actions
Step 2: Import OpenAPI Specification
- Click Add Tool or Import
- Select OpenAPI Spec
- Enter URL:
https://demo.auditswarm.com/api/openapi-v3 - Click Import
Step 3: Configure Authentication
- Go to Authentication settings
- Select OAuth 2.0
- Enter the authorization and token URLs above
- Save the configuration
Step 4: Test the Integration
- Open the agent preview
- Ask: "List my audits"
- Complete OAuth login when prompted
- Verify audit data appears
Available Operations
The OpenAPI spec exposes these operations:
| Operation | Description |
|---|---|
suggest_change | Create/update/delete entities via suggestions |
query_data | Query audits, risks, controls, workflows |
get_current_context | Get user's current page context |
help | Get workflow guidance |
Example Prompts
Once connected, try these prompts:
Query Data:
- "List all audits in progress"
- "Show high-severity risks"
- "What controls are in place?"
Make Changes:
- "Update the SOC2 audit status"
- "Create a new risk assessment"
- "Mark control as implemented"
Troubleshooting
Import Fails
Cause: OpenAPI spec URL not accessible.
Solution:
- Verify URL is correct:
https://demo.auditswarm.com/api/openapi-v3 - Try opening the URL in a browser
- Check your network connectivity
Authentication Errors
Cause: OAuth configuration incorrect.
Solution:
- Verify authorization URL ends with
/api/oauth/authorize - Verify token URL ends with
/api/oauth/token - Re-configure authentication settings
No Data Returned
Cause: You may not have data in AuditSwarm.
Solution:
- Log into AuditSwarm directly
- Create some test audits/risks
- Try the query again
Next Steps
- MCP Tools Reference - Complete API documentation
- How to Approve Suggestions - Handle AI suggestions
- Suggestions Pattern - Understand AI safety