Connect external services to supercharge your AI. OAuth integrations let the model access your tools, calendars, and data sources.
OAuth flow handles authentication - no API keys needed
Tokens encrypted and automatically refreshed
Request only the permissions you need
from mythicdot import MythicDot
client = MythicDot()
# Create a response with connected account access
response = client.responses.create(
model="mythic-4",
input="What's on my calendar for tomorrow?",
tools=[
{
"type": "connected_account",
"connected_account": {
"provider": "google_calendar",
"account_id": "acc_abc123"
}
}
]
)
# List user's connected accounts
accounts = client.connected_accounts.list(
user_id="user_xyz789"
)
for account in accounts:
print(f"{account.provider}: {account.status}")
# Get OAuth authorization URL
auth_url = client.connected_accounts.create_authorization_url(
provider="google_drive",
redirect_uri="https://yourapp.com/callback",
scopes=["drive.readonly"]
)
print(f"Authorize: {auth_url}")
Read access to files and folders
View and manage calendar events
Access repositories and issues
Give your AI the context it needs from your tools.