paschal
03/24/2026, 3:10 PMimport { createOpenAI } from "@ai-sdk/openai";
import { Composio } from "@composio/core";
import { MastraProvider } from "@composio/mastra";
import { Agent } from "@mastra/core/agent";
// import { openai } from "@ai-sdk/openai";
const COMPOSIO_API_KEY = "";
const OPENAI_API_KEY = "";
const OPENAI_BASE_URL = "https://openrouter.ai/api/v1";
const MODEL = "gpt-5.2";
const AGENT_ID = "44781183"; // same as user id on composio dashboard
const TOOLKITS = ["googlecalendar"];
const PROMPT = "Do I have any booking on my Google Calendar for tomorrow? If so, list the events and their times. Timezone is Africa/Lagos.";
const composio = new Composio({
provider: new MastraProvider(),
apiKey: COMPOSIO_API_KEY,
});
const openai = createOpenAI({
apiKey: OPENAI_API_KEY,
baseURL: OPENAI_BASE_URL,
});
// Create a session for your user
const session = await composio.create(AGENT_ID, { toolkits: TOOLKITS });
const tools = await session.tools({ toolkits: TOOLKITS });
const agent = new Agent({
id: "my-agent",
name: "My Agent",
instructions: "You are a helpful assistant.",
model: openai(MODEL),
tools,
});
const { text } = await agent.generate([
{ role: "user", content: PROMPT },
]);
console.log(text);
`
Any help with this? It would claim to not have access to the google calendar. Can you help with this please ?paschal
03/24/2026, 3:10 PMimport { anthropic, createAnthropic } from "@ai-sdk/anthropic";
import { Composio } from "@composio/core";
import { VercelProvider } from "@composio/vercel";
import { generateText, stepCountIs } from "ai";
import { createOpenAI } from "@ai-sdk/openai";
const COMPOSIO_API_KEY = "ak_l_";
const OPENAI_API_KEY = "sk-or-v1-";
const OPENAI_BASE_URL = "https://openrouter.ai/api/v1";
const MODEL = "claude-opus-4-6"; // also tried antropic/claude-opus-4-6
const AGENT_ID = "44781183";
const TOOLKITS = ["googlecalendar"];
const PROMPT = "Do I have any booking on my Google Calendar for tomorrow? If so, list the events and their times. Timezone is Africa/Lagos.";
const composio = new Composio({
provider: new VercelProvider(),
apiKey: COMPOSIO_API_KEY,
});
const openai = createOpenAI({
apiKey: OPENAI_API_KEY,
baseURL: OPENAI_BASE_URL,
});
const anthropicClient = createAnthropic({
apiKey: OPENAI_API_KEY,
baseURL: OPENAI_BASE_URL,
});
// Create a session for your user
const session = await composio.create(AGENT_ID, { toolkits: TOOLKITS });
const tools = await session.tools({ toolkits: TOOLKITS });
const { text } = await generateText({
model: anthropicClient(MODEL),
tools,
prompt: PROMPT,
stopWhen: stepCountIs(10),
});
console.log(text);
Any help with this.paschal
03/27/2026, 4:53 AMUday
03/27/2026, 5:30 AMUday
03/27/2026, 5:44 AMpaschal
03/28/2026, 7:03 AM"@composio/core": "^0.6.7",
"@composio/mastra": "^0.6.7",
"@composio/vercel": "^0.6.7",
When I run it, I get the error:
I can’t check your Google Calendar directly right now because the Calendar tool I use to read events is erroring in this environment (it fails before I can even authenticate or query your events). So I’m unable to reliably list your bookings for tomorrow from here.
Can you help please? We've been stuck at this for a week now.paschal
03/28/2026, 7:09 AMI can’t check your Google Calendar right now because the Calendar tool connection/search is failing on my side (an integration/schema validation error), so I’m unable to fetch your events directly.paschal
03/28/2026, 7:13 AMpaschal
03/28/2026, 4:07 PMI can check, but my Google Calendar tool lookup call failed due to a backend schema/validation error, so I can’t access your calendar right now from here.paschal
03/31/2026, 1:52 PMUday
03/31/2026, 6:12 PMexport COMPOSIO_LOG_LEVEL=debug in your terminal to get complete network logs.paschal
04/02/2026, 2:16 PMpaschal
04/02/2026, 2:16 PMBhukya Yedukondalu Naik
04/03/2026, 4:21 AM