An agent you write yourself
Connect Slide in the framework you build with: OpenAI, Claude, Vercel AI SDK, LangChain, CrewAI, Google ADK, Pydantic AI or Mastra.
- 1In Slide open API keys and make a key for this agent alone. Give it only what it needs: Social media, Inbox, Contacts, and the message channels it may send on.
- 2Keep the key out of files that other people read. The steps below take it from the environment variable SLIDE_API_KEY: export SLIDE_API_KEY="sk_live_..."
- 3Open your framework's tab. Replace YOUR_MODEL with the model you use.
- 4Ask the agent: "Which Slide tools do you have?" It should name them. Then ask it to list your social channels.
python
import os
from openai import OpenAI
client = OpenAI()
response = client.responses.create(
model="YOUR_MODEL",
input="List our social channels and tell me which need a person.",
tools=[{
"type": "mcp",
"server_label": "slide",
"server_url": "https://api.slide.cx/mcp",
"headers": {
"Authorization": f"Bearer {os.environ['SLIDE_API_KEY']}",
"X-Slide-MCP-Writes": "true",
},
"require_approval": "always",
}],
)
print(response.output_text)require_approval "always" makes the API ask before every tool call. Keep it while you test.
The steps in the other app were read on its maker's page on 25 November 2026. Menus move, so look there when a step has changed. OpenAI: responses.create
Without the header X-Slide-MCP-Writes the agent can only read. With the value true it can also post, comment, answer customers and send messages, as far as the key allows. Leave the line out for an agent that only plans or reports.