ClawLink

How to connect Perplexity AI to Grok Bot

Connect Perplexity AI to Grok Bot with ClawLink: paste your Perplexity AI key once and 9 tools work from chat. No MCP server to run, nothing stored on your machine.

Get started for free
Grok Bot
Grok Bot
ClawLink
ClawLink
Perplexity AI
Perplexity AI
Perplexity AIAPI KEYMCP

Run web search and AI-powered answers through Perplexity AI. Once connected, Grok Bot can read and act on Perplexity AI from chat — pairing, token refresh, and tool wiring handled for you.

9 tools

Grok Bot runs on its own cloud computer, so most Perplexity AI guides send you to register an OAuth app and paste keys into a sandbox that resets. ClawLink gives Grok Bot a more practical Perplexity AI setup: it runs one CLI command, you approve once in the browser, and Grok Bot can call real Perplexity AI actions from chat with no auth, token refresh, or tool wiring to build yourself.

Copy this prompt into Grok Bot. It runs the ClawLink CLI in its own terminal and pairs your account.

Prompt for Grok Bot
Set up ClawLink for me and tell me when it's ready.

1. Pair this machine. It prints an approval link, so show me the link and stop, don't wait:
npx -y @useclawlink/cli login

2. I'll approve it in my browser, then reply "approved".

3. When I say approved, connect the app:
npx -y @useclawlink/cli connect perplexity-ai

4. Then run `npx -y @useclawlink/cli whoami` and tell me whether ClawLink is ready.

Setup

It takes three steps to connect Grok Bot to Perplexity AI.

  1. 1

    Pair from the terminal

    Ask Grok Bot to run the ClawLink CLI. It prints a link you approve once in your browser:

    npx -y @useclawlink/cli login
  2. 2

    Connect Perplexity AI

    Paste your API key in the dashboard.

  3. 3

    Use it from chat

    Ask Grok Bot: "What can you do with Perplexity AI?"

Install by command

The prompt above does all of this. By hand, it is two commands Grok Bot runs in its own terminal, and one browser approval:

npx -y @useclawlink/cli login          # prints an approval link, approve it in your browser
npx -y @useclawlink/cli connect perplexity-ai

Pair once and it sticks: the key is written to ~/.clawlink/credentials.json inside Grok Bot's sandbox, so it survives between sessions. Prefer native tools over shell commands? Add https://claw-link.dev/api/mcp as a custom connector at grok.com/connectors and approve the ClawLink sign-in. Same account, no CLI.

Verify the connection by asking Grok Bot:

Use Perplexity AI to perplexityai create async chat completion and walk me through the result in plain English.

Using a different agent?

The CLI above is not specific to Grok Bot. Claude Code, Cursor, Codex, or any agent that can run a shell command pairs with the same ClawLink account the same way:

npx -y @useclawlink/cli login

login opens the same browser approval and stores a credential locally. Once Perplexity AI is connected in the dashboard, that agent calls the same 9 Perplexity AI tools over MCP. Full setup for MCP clients and shell agents: connect apps to any AI agent.

Perplexity AI MCP for Grok Bot

Looking for a Perplexity AI MCP server for Grok Bot? ClawLink connects Perplexity AI to Grok Bot and exposes 9 Perplexity AI tools your agent can call over MCP, with hosted auth and nothing to run or maintain yourself. Using a different agent? The OpenClaw Perplexity AI integration and the Hermes Perplexity AI integration connect the same ClawLink account the same way.

What the Grok Bot Perplexity AI integration can do

9 Perplexity AI tools are ready for Grok Bot once the account is connected.

All 9 Perplexity AI tools for Grok Bot

ToolWhat it does
Create async chat completion perplexityai_create_async_chat_completionCreate Async Chat Completion (POST /v1/async/sonar). Submits an asynchronous chat completion request for long-running tasks.
Create chat completion perplexityai_create_chat_completionPerplexity Sonar Chat Completions (POST /v1/sonar). Generates web-grounded conversational AI responses with citations.
Create contextualized embeddings perplexityai_create_contextualized_embeddingsCreate Contextualized Embeddings (POST /v1/contextualizedembeddings). Generates document-aware embeddings where chunks from the same document share context.
Create embeddings perplexityai_create_embeddingsGenerate vector embeddings for independent texts (queries, sentences, documents). This action takes one or more input texts and generates vector embeddings using Perplexity AI's embedding models.
Execute agent perplexityai_execute_agentCreate Agent Response (POST /v1/agent). Orchestrates multi-step agentic workflows with built-in tools (web search, URL fetching, function calling), reasoning, and multi-model support.
Get async chat completion perplexityai_get_async_chat_completionGet Async Chat Completion (GET /v1/async/sonar/{id}). Retrieves the result of an asynchronous chat completion request by its ID. Use this to poll for the result after creating an async job.
List async chat completions perplexityai_list_async_chat_completionsList Async Chat Completions (GET /v1/async/sonar). Retrieves a list of all asynchronous chat completion requests for the authenticated user.
List models perplexityai_list_modelsList Models (GET /v1/models). Lists models available for the Agent API. Returns model identifiers that can be used with the Agent endpoint.
Search perplexityai_searchSearch the Web (POST /search). Returns raw, ranked web search results directly from Perplexity's index without LLM processing. Faster and cheaper than chat completions when you need raw results.

Try it: find the Perplexity AI tool you need

Browse the 9 Perplexity AI tools

Click any tool to see exactly what Grok Bot can do and copy a ready-to-use prompt.

Example prompts

Use Perplexity AI to perplexityai create async chat completion and walk me through the result in plain English.

Use Perplexity AI to perplexityai create chat completion and walk me through the result in plain English.

Use Perplexity AI to perplexityai create contextualized embeddings and walk me through the result in plain English.

Use Perplexity AI to perplexityai create embeddings and walk me through the result in plain English.

The alternative to ClawLink is usually manual API key setup plus your own token handling, permission troubleshooting, and tool plumbing for Grok Bot. That is fine if you want to build and maintain the integration yourself. Most teams just want Perplexity AI working from chat.

ManualClawLink
Credential handlingCollect, validate, store, and rotate the Perplexity AI API key yourself, then make sure every tool call uses the right account.Users complete the hosted ClawLink setup once and the connected Perplexity AI account becomes available to the agent without you building credential management.
Ongoing maintenanceYou own refresh logic, permission debugging, environment config, and every provider-specific edge case for Perplexity AI.ClawLink handles the repetitive integration plumbing so your team can focus on the workflow instead of the infrastructure.
Agent usabilityYou still need to expose the right Perplexity AI actions to the runtime in a format your agent can reliably use.9 tools for Perplexity AI are already exposed through ClawLink, so the agent can read and act from chat immediately.

Composio also exposes Perplexity AI to AI agents. It is developer infrastructure: Python and TypeScript SDKs, an MCP server, and a catalog past 1,000 apps, aimed at teams shipping agent products. ClawLink is built for Grok Bot users instead. You install the plugin once, connect Perplexity AI in the browser, and the 9 tools above work from chat. There is no SDK and no config file, and the Perplexity AI key you paste at setup is stored server-side rather than kept in your environment. Choosing between them? Read the full Composio alternatives comparison.

Troubleshooting

Grok Bot says it cannot add ClawLink as an MCP server

Grok Bot only attaches MCP servers that are reachable over the public internet, so a local stdio server is refused. You do not need one. Ask Grok Bot to run npx -y @useclawlink/cli login in its terminal instead. The CLI is a shell command, not an MCP server. If you would rather have native tools, add https://claw-link.dev/api/mcp as a custom connector at grok.com/connectors and approve the ClawLink sign-in.

Connection succeeds but no tools appear

Reconnect Perplexity AI from the dashboard, then start a fresh chat if the runtime still has the old tool catalog loaded.

"Tool schema not loaded yet" error when calling Perplexity AI tools

Perplexity AI tool schemas load on demand the first time a tool runs and are cached after that, so this error usually clears on its own: wait a few seconds and retry the same request. If every Perplexity AI call keeps failing with it in a fresh chat, reconnect from the dashboard, and contact support if it still persists — that pattern points to a configuration problem on our side, not something you can fix by reconnecting again.

Perplexity AI returns 403 or "permission denied" on one action while others work

Two usual causes. The connected account may not have access to the specific workspace, inbox, store, or project in the request — check that first. If access looks right, the agent may have sent a placeholder value (like "YOUR_ID" or an example id from documentation) instead of a real one: ask it to run a list or search tool first, then retry the action with a real id from those results. Most failures at this stage are one of these two, not ClawLink bugs.

API key setup works but results look incomplete

Double-check that the API key for Perplexity AI has the right scopes or account access. A valid key can still be too limited for some reads or writes.

FAQ

Is there a Grok Bot Perplexity AI integration?

Yes. ClawLink is the fastest way to connect Grok Bot to Perplexity AI: link your Perplexity AI account once in the browser and Grok Bot can call the Perplexity AI API through 9 ready-made tools — no custom code or token handling.

How do I connect Perplexity AI to Grok Bot with ClawLink?

Ask Grok Bot to run npx -y @useclawlink/cli login in its terminal and approve the link it prints, then npx -y @useclawlink/cli connect perplexity-ai to authorize Perplexity AI. Grok Bot calls the tools from the next message, and the pairing persists in its sandbox, so this is a one-time step: no config files, and the Perplexity AI key you paste is stored server-side instead of in your environment.

How long does it take to connect Perplexity AI to Grok Bot?

About two minutes. Sign in, click Connect next to Perplexity AI in the dashboard, authenticate, and Grok Bot can use it from the next chat message.

Why use ClawLink instead of wiring Perplexity AI up myself?

The alternative to ClawLink is usually manual API key setup plus your own token handling, permission troubleshooting, and tool plumbing for Grok Bot. That is fine if you want to build and maintain the integration yourself. Most teams just want Perplexity AI working from chat.

Grok Bot says it cannot add ClawLink as an MCP server

Grok Bot only attaches MCP servers that are reachable over the public internet, so a local stdio server is refused. You do not need one. Ask Grok Bot to run npx -y @useclawlink/cli login in its terminal instead. The CLI is a shell command, not an MCP server. If you would rather have native tools, add https://claw-link.dev/api/mcp as a custom connector at grok.com/connectors and approve the ClawLink sign-in.