This guide walks you through connecting Perplexityai to Vercel AI SDK v6 using the Composio tool router. By the end, you'll have a working Perplexityai agent that can run chat completions, search the web, create embeddings, execute agents, and check your usage analytics through natural language commands.
This guide will help you understand how to give your Vercel AI SDK agent real control over a Perplexityai account through Composio's Perplexityai MCP server.
Before we dive in, let's take a quick look at the key ideas and tools involved.
For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.









