# How to connect Perplexity AI to Grok Bot (paste one key, 9 tools)

> 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.

Web version: https://claw-link.dev/grokbot/perplexity-ai

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.

**Start here — paste this into Grok Bot to set up ClawLink:**

> 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. **Pair from the terminal** — ask Grok Bot to run `npx -y @useclawlink/cli login` and approve the link it prints.
2. **Connect Perplexity AI** — `npx -y @useclawlink/cli connect perplexity-ai`, then approve in the browser.
3. **Use it from chat** — ask Grok Bot in plain English.

**The same CLI works from any agent with shell access:**

```bash
npx -y @useclawlink/cli login          # sign in via browser — no API key to paste
npx -y @useclawlink/cli connect perplexity-ai  # connect Perplexity AI (browser OAuth)
npx -y @useclawlink/cli actions perplexity-ai  # list available actions
npx -y @useclawlink/cli run perplexity-ai <action> --input '<json>'  # execute (add --confirm for writes)
```

### 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:

```bash
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:

```bash
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](https://claw-link.dev/learn/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](https://claw-link.dev/learn/what-is-an-mcp-server), with [hosted auth](https://claw-link.dev/learn/oauth-for-ai-agents) and nothing to run or maintain yourself. Using a different agent? The [OpenClaw Perplexity AI integration](https://claw-link.dev/openclaw/perplexity-ai) and the [Hermes Perplexity AI integration](https://claw-link.dev/hermes/perplexity-ai) 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

| Tool | What it does |
|---|---|
| **Create async chat completion** `perplexityai_create_async_chat_completion` | Create Async Chat Completion (POST /v1/async/sonar). Submits an asynchronous chat completion request for long-running tasks. |
| **Create chat completion** `perplexityai_create_chat_completion` | Perplexity Sonar Chat Completions (POST /v1/sonar). Generates web-grounded conversational AI responses with citations. |
| **Create contextualized embeddings** `perplexityai_create_contextualized_embeddings` | Create Contextualized Embeddings (POST /v1/contextualizedembeddings). Generates document-aware embeddings where chunks from the same document share context. |
| **Create embeddings** `perplexityai_create_embeddings` | Generate 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_agent` | Create 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_completion` | Get 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_completions` | List Async Chat Completions (GET /v1/async/sonar). Retrieves a list of all asynchronous chat completion requests for the authenticated user. |
| **List models** `perplexityai_list_models` | List Models (GET /v1/models). Lists models available for the Agent API. Returns model identifiers that can be used with the Agent endpoint. |
| **Search** `perplexityai_search` | Search 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. |

## Example prompts

**Perplexityai Create Async Chat Completion**

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

**Perplexityai Create Chat Completion**

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

**Perplexityai Create Contextualized Embeddings**

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

**Perplexityai Create Embeddings**

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

## ClawLink vs. building it yourself

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.

| | Manual | ClawLink |
|---|---|---|
| **Credential handling** | Collect, 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 maintenance** | You 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 usability** | You 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. |

## ClawLink vs. Composio

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](https://claw-link.dev/hub/composio-alternatives) comparison.

### 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.

### 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.

## Related

- [Connect DataRobot](https://claw-link.dev/grokbot/datarobot) — DataRobot is a machine learning platform that automates model building, deployment, and monitoring, enabling organizations to derive predictive insights from large datasets.
- [Connect Chatbotkit](https://claw-link.dev/grokbot/chatbotkit) — ChatBotKit is a platform that enables developers to build and manage AI-powered chatbots, offering comprehensive APIs and SDKs for seamless integration into applications.
- [ElevenLabs tools](https://claw-link.dev/grokbot/elevenlabs) — Generate speech and voice cloning
