@devries-cameron20 / composio-1 / commits / 8d39035d1
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Docs: Vercel provider fix (#2196)

Co-authored-by: Soham <sohamganatra1@gmail.com>

Sushmitha Mallesh committed Nov 22, 2025 at 23:14 UTC 8d39035d12c3824c82be5b247a700af7b73c58d3
1 file changed +11 -6
fern/pages/src/providers/vercel.mdx
+11 -6
@@ -24,6 +24,8 @@ You can specify and import the provider in the constructor.
24 ```typescript TypeScript maxLines=60 wordWrap
25 import { Composio } from '@composio/core';
26 import { VercelProvider } from '@composio/vercel';
27 +import { generateText } from 'ai';
28 +import { openai } from "@ai-sdk/openai";
29
30 const composio = new Composio({
31 provider: new VercelProvider(),
@@ -33,19 +35,22 @@ const composio = new Composio({
35 ## Usage
36
37 ```typescript TypeScript maxLines=60 wordWrap
36 -const tools = await composio.tools.get(userId, 'GMAIL_SEND_EMAIL');
38 +// create an auth config for gmail
39 +// then create a connected account with an external user id that identifies the user
40 +const externalUserId = "your-external-user-id";
41 +const tools = await composio.tools.get(externalUserId, "GMAIL_SEND_EMAIL");
42
43 +// env: OPENAI_API_KEY
44 const { text } = await generateText({
39 - model: anthropic('claude-3-7-sonnet-20250219'),
45 + model: openai("gpt-5"),
46 messages: [
47 {
42 - role: 'user',
43 - content: "Send an email to soham@composio.dev saying 'hi from the ether of composio'",
48 + role: "user",
49 + content: `Send an email to soham.g@composio.dev with the subject 'Hello from composio 👋🏻' and the body 'Congratulations on sending your first email using AI Agents and Composio!'`,
50 },
51 ],
52 tools,
47 - maxSteps: 5,
53 });
54
50 -console.log(text);
55 +console.log("Email sent successfully!", { text });
56 ```