Back

GanalyticsAI
Description
Connect to your Google Analytics and get data with AI using simple prompts.
Details
https://analytics-gpt-389217.lm.r.appspot.com/.well-known/ai-plugin.json
{
"schema_version": "v1",
"name_for_human": "AnalyticsAI",
"name_for_model": "analyticsai",
"description_for_human": "Connect to your Google Analytics™ and get data with AI using simple prompts.",
"description_for_model": "This plugin enables fetching data from the Google Analytics Data API v1 using simple text prompt (example: 'project id: XXXXXXXXX', 'list of requested metrics: bounce rate, sessions, users', 'start date: DD-MM-YYYY', 'end date: DD-MM-YYYY'). Using the 'get_property' function to fetch the property ID. Then, use the 'chat' function to fetch the data. Provide a message that includes the property ID number, start date and end date (in DD-MM-YYYY format), and the requested metrics. Note: Ensure compatibility between metrics and dimensions. If the plugin receives 'analyticsData#runReport' response, it indicates there is no data to show. This could be due to incompatible metrics and dimensions or absence of data for the requested metrics. In such cases, verify the compatibility of the metric and the dimension, or try to remove the dimension and try other metrics.",
"auth": {
"type": "oauth",
"client_url": "https://analytics-gpt-389217.lm.r.appspot.com/authorize",
"scope": "https://www.googleapis.com/auth/analytics https://www.googleapis.com/auth/analytics.readonly",
"authorization_url": "https://analytics-gpt-389217.lm.r.appspot.com/callback",
"authorization_content_type": "application/json",
"verification_tokens": {
"openai": "18d7fa8642014e1da1e412d7dc988af9"
}
},
"api": {
"type": "openapi",
"url": "https://analytics-gpt-389217.lm.r.appspot.com/.well-known/openapi.yaml",
"functions": [
{
"name": "chat",
"description": "Prompt for requesting data, the prompt must include the property ID number (for example: '352933701'), start date and end date in DD-MM-YYYY format, and possibly list or requested metrics (recommended to use simple metrics).",
"parameters": [
{
"name": "user_message",
"description": "Provide text prompt that is requesting for google analytics data. The prompt must include the property ID number, start date and end date in DD-MM-YYYY format, and possibly list or requested metrics metrics (recommended to use simple metrics).",
"type": "object"
}
],
"return_type": "object",
"return_description": "The fetched Google Analytics data, if theres problem with data try simple request to test if the API is working, simple request should iclude the project id, simple metric and date that's past 14 days in DD-MM-YYYY format (project id: XXXXXXXXX, metric: sessions, start date DD-MM-YYYY, to end date: DD-MM-YYYY)"
},
{
"name": "get_properties",
"description": "Get the list availbale Google Analytics properties and their id's",
"parameters": [],
"return_type": "object",
"return_description": "The list of Google Analytics properties"
},
{
"name": "get_metadata",
"description": "Get the metadata of a Google Analytics property containing available metrics and dimensions. The property_id can be obtained by calling the get_properties function.",
"parameters": [
{
"name": "property_id",
"description": "The proprty id number of the Google Analytics property (for example: '352933701').",
"type": "string"
}
],
"return_type": "object",
"return_description": "The metadata of the Google Analytics property"
}
]
},
"logo_url": "https://static.wixstatic.com/media/bea7d0_39c3af175dbb496b995b257bdd0d8bdf~mv2.png/v1/fill/w_200,h_200,al_c,q_85,enc_auto/logo.png",
"contact_email": "bizupserv@gmail.com",
"legal_info_url": "https://bizupserv.wixsite.com/imageai/termsandconditions"
}
https://analytics-gpt-389217.lm.r.appspot.com/.well-known/openapi.yaml
openapi: 3.0.0
info:
title: Google Analytics Data Fetch API
version: 1.2
paths:
/chat:
post:
operationId: chatPost
summary: Fetch Google Analytics data
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
message:
type: string
responses:
'200':
description: Successful operation
content:
application/json:
schema:
type: object
additionalProperties:
type: string
/get_properties:
get:
operationId: getProperties
summary: Get the list of Google Analytics properties with properties id
responses:
'200':
description: Successful operation
content:
application/json:
schema:
type: object
additionalProperties:
type: string
/get_metadata/{property_id}:
get:
operationId: getMetadata
summary: Get the metadata of available metrics and dimensions of a Google Analytics property
parameters:
- name: property_id
in: path
required: true
schema:
type: string
responses:
'200':
description: Successful operation
content:
application/json:
schema:
type: object
additionalProperties:
type: string