Gosquared Integration for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Gosquared MCP or direct API to monitor live website traffic, fetch visitor analytics, trigger engagement messages, and segment users through natural language.
Gosquared Logo
Gradient Top
Gradient Middle
Gradient Bottom
divider

Supported Tools

Tools
Add Shared UserTool to add a new shared user to a project.
Remove shared userTool to remove a user from a GoSquared project.
Account Shared UsersTool to retrieve all team members that have access to a given project.
List Account SitesTool to list all projects/sites accessible to the authenticated account.
Check API Token Validity and ScopesTool to check whether an API key is valid and retrieve its enabled scopes.
Retrieve Chat ConversationTool to retrieve a chat conversation by its ID.
Retrieve Chat MessagesTool to retrieve a list of messages from a chat conversation.
Retrieve Chat ConversationsTool to retrieve chat data for reporting purposes.
Retrieve Chat FeedTool to retrieve messages and events from a chat conversation.
Delete personTool to delete a person profile and all associated data.
Get specific chat messageTool to retrieve a specific chat message.
Get Specific VisitorTool to retrieve information for a specific online visitor.
Get People Event TypesTool to retrieve event types ordered by tracked count.
Get People Property TypesTool to retrieve all property types in People CRM.
Get PersonTool to retrieve a specific person profile by ID.
GoSquared - Get Person FeedTool to retrieve a specific person's event feed in reverse chronological order.
List PeopleTool to search and filter People CRM profiles.
Get current concurrent visitorsTool to retrieve the number of concurrent visitors currently on your site.
Get Real-Time Popular PagesTool to retrieve the most popular pages currently being viewed on your site.
Get Real-Time Visitor PlatformsTool to retrieve platforms used by online visitors sorted by visitor count.
Get Real-Time OverviewTool to retrieve a summary of real-time data for the site.
Now SourcesTool to retrieve the most influential traffic sources currently driving visitors to your site.
Get Time SeriesTool to retrieve visitor counts over time as data points.
Get Real-Time Online VisitorsTool to retrieve a list of current online visitors.
GoSquared - People DevicesTool to retrieve device information from People CRM.
Export Smart Group FeedTool to export all pageview activity for a Smart Group to CSV.
Smart Group PeopleTool to retrieve people in a specific Smart Group.
List People SmartGroupsTool to retrieve all Smart Groups for a project.
Add Account SiteTool to add a new site to the GoSquared account.
Archive Chat ConversationTool to archive a chat conversation.
Send Chat MessageTool to send a message in a chat conversation.
Leave Chat NoteTool to leave a note in a chat conversation.
Unarchive Chat ConversationTool to unarchive a chat conversation.
Create People SmartGroupTool to add a new Smart Group to a GoSquared project.
Track GoSquared EventTool to send custom events to GoSquared.
Track GoSquared IdentifyTool to identify users and associate them with specific properties in GoSquared.
Track PageviewTool to track pageviews.
Track GoSquared TransactionTool to track e-commerce transactions.
Retrieve Aggregate MetricsTool to retrieve aggregate metrics for a specified period.
Get Campaign Medium MetricsTool to retrieve UTM medium metrics over a time period.
Retrieve Event CountsTool to retrieve counts of event triggers over a specified time period.
Get Page MetricsTool to retrieve page-level metrics over a specified period.
Get Base Path MetricsTool to retrieve base path metrics over a time period.

Connect Gosquared MCP Tool with your Agent

Python
TypeScript

Install Composio

python
pip install composio claude-agent-sdk
Install the Composio SDK and Claude Agent SDK

Create Tool Router Session

python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
Initialize the Composio client and create a Tool Router session

Connect to AI Agent

python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to Gosquared tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('List all projects accessible to my account in Gosquared')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
Use the MCP server with your AI agent

Connect Gosquared API Tool with your Agent

Python
TypeScript

Install Composio

python
pip install composio_openai
Install the Composio SDK

Initialize Composio and Create Tool Router Session

python
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
openai = OpenAI()
session = composio.create(user_id='your-user-id')
Import and initialize Composio client, then create a Tool Router session

Execute Gosquared Tools via Tool Router with Your Agent

python
tools = session.tools
response = openai.responses.create(
  model='gpt-4.1',
  tools=tools,
  input=[{
    'role': 'user',
    'content': 'Show me all active chat conversations from today in Gosquared.'
  }]
)
result = composio.provider.handle_tool_calls(
  response=response,
  user_id='your-user-id'
)
print(result)
Get tools from Tool Router session and execute Gosquared actions with your Agent

Why Use Composio?

AI Native Gosquared Integration

  • Supports both Gosquared MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Gosquared data

Managed Auth

  • Built-in API key management with zero manual handling
  • Central place to manage, scope, and revoke Gosquared access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Gosquared
  • Scoped, least privilege access to Gosquared resources
  • Full audit trail of agent actions to support review and compliance

Frequently Asked Questions

Do I need my own developer credentials to use Gosquared with Composio?

Yes, Gosquared requires you to configure your own API key credentials. Once set up, Composio handles secure credential storage and API request handling for you.

Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Used by agents from

Context
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.