Lyzr
Build, run, evaluate, and manage AI agents and related Lyzr Studio services, including voice, responsible AI, simulation, memory, scheduling, workflows, and knowledge bases.
Verdict
Common use cases
- Run compliance checks on customer-facing copy
- Build session memory for multi-turn support chats
- Schedule daily agent tasks via cron
- Spin up task-specific agents on demand
- Clear conversation history between user sessions
Integration
- Vendor
- Lyzr
- Category
- other
- Auth
- API_KEY
- Tools
- 22
- Composio slug
lyzr
Tools
- Add Memory Messages
Store a batch of conversation messages in Lyzr Memory for an owner, session, and optional agent, with optional synchronous fact extraction.
- Chat With Agent
Send a message or message history to an active Agent Studio agent and return its synchronous inference response for a session.
- Clear Memory Session
Permanently clear messages and memories for one explicit owner and session in Lyzr Memory. Cross-session deletion is always disabled.
- Create Agent
Create a single-task Agent Studio agent with an LLM provider, model, instructions, and optional tool configuration.
- Create Agent Schedule
Create a cron schedule that runs one Agent Studio agent with a message in a specified timezone.
- Delete Agentdestructive
Permanently delete one Agent Studio agent by ID.
- Delete Agent Scheduledestructive
Permanently delete one agent cron schedule and remove its associated scheduler job.
- Evaluate Text With RAI Policy
Apply one owned Responsible AI policy to text and return processed text, block decisions, warnings, detections, and redactions.
- Get Agent
Return the current configuration and status of one Agent Studio agent by ID.
- Get Knowledge Base
Return one Lyzr Knowledge Base configuration by its known RAG configuration ID.
- Get Simulation Overview
Return aggregate Agent Simulation counts and average evaluation pass rate for the connected workspace.
- List Agents
Return all Agent Studio agents owned by the connected API key, including IDs needed by lifecycle and inference tools.
- List Agent Schedules
Return one page of agent cron schedules, optionally filtered by user, agent, or active state.
- List Agent Simulation Issues
Return recent performance, error, and Responsible AI issues across monitored agents, optionally filtered by resolution and severity.
- List RAI Policies
Return Responsible AI policies owned by the authenticated user, including policy IDs and enabled guardrail configuration.
- List SuperFlow Executions
Return one page of SuperFlow execution records, optionally filtered by workflow and execution status.
- List SuperFlow Workflows
Return all SuperFlow workflow definitions accessible to the connected API key, including workflow IDs and graph data.
- List Voice Agents
Return saved Voice agents accessible to the connected organization, including IDs used to filter transcripts.
- List Voice Transcripts
Return one page of accessible Voice call transcripts, optionally filtered by agent, session, organization, or date range.
- Retrieve Knowledge
Retrieve relevant documents from a known Lyzr Knowledge Base using configurable basic, MMR, hypothetical-document, or time-aware retrieval.
- Search Memories
Semantically search stored memories for one owner, within one session or across that owner's sessions, using Lyzr's hybrid vector and BM25 retrieval.
- Set Agent Status
Activate or deactivate an Agent Studio agent. Deactivated agents reject inference until reactivated.
Setup
Setup guide
- 11. In Switchy, open your workspace settings and navigate to Integrations. 2. Search for Lyzr and click Connect. 3. You'll be prompted to paste your Lyzr API key—grab it from your Lyzr dashboard under API Settings. 4. Grant the integration access to your current workspace. 5. Open any Project and type '@Lyzr create an agent' in a message to confirm the connection works. 6. The MCP will respond with agent creation parameters or an error if the key is invalid. 7. To invoke tools, always start your prompt with '@Lyzr' followed by the action—'add memory messages for session X' or 'evaluate this text with policy Y'. 8. For scheduled agents, you'll reference agent IDs returned from prior create calls, so keep a note of those in your Project for reuse.
What teammates see: by default, memories from Lyzr are scoped to the Project (PROJECT visibility) - you can mark any memory PRIVATE or share it ORG-wide.
Works well with
Top models
Compatibility data appears once enough Projects have used this MCP together with a given model.
How Switchy teams use it
Starter prompts
Create Support Agent
@Lyzr create an agent with GPT-4, instructions to triage support tickets by urgency, and enable the ticket lookup tool.
Store Chat Context
@Lyzr add memory messages for owner 'team-alpha', session 'support-2024-01', using the last five messages from this thread.
Evaluate Marketing Copy
@Lyzr evaluate this text with RAI policy 'marketing-review': 'Our platform is the best choice for enterprise teams seeking innovation.'
Schedule Daily Standup Agent
@Lyzr create an agent schedule for agent ID 'agent-xyz' to run at 9 AM EST weekdays with the message 'Summarize open tasks for today.'
Clear Session Memory
@Lyzr clear memory session for owner 'user-456' and session 'onboarding-flow' to reset their conversation history.
Example outputs
Illustrative - representative of the model's voice and quality, not literal recordings.
@Lyzr retrieve the last 15 conversation messages for session abc-789 and summarize the main topics discussed
Retrieved 15 messages from session abc-789 spanning the last 3 days. The conversation centered on three main topics: (1) implementing OAuth2 flows for a mobile app, with specific questions about refresh token rotation; (2) database schema design for a multi-tenant SaaS product, including partition strategies; (3) deployment pipeline optimization, particularly around Docker layer caching. The user asked 8 questions total, with 7 receiving detailed technical responses. No unresolved threads remain in this session.
This example shows Lyzr Memory's retrieval capability paired with AI summarization. The MCP fetches stored conversation history; the LLM synthesizes it. Requires the session ID and owner context. Memory retention policies vary by account tier—check your plan's limits before relying on long-term recall.
@Lyzr create a new agent named 'PR Reviewer' using GPT-4 that checks pull request descriptions for completeness and suggests improvements
Agent created successfully. ID: agt_k3m9x2p7, Name: 'PR Reviewer', Model: gpt-4-turbo, Status: active. The agent is configured with instructions to evaluate PR descriptions for: (1) clear problem statement, (2) testing evidence, (3) breaking change flags, (4) rollback plan if applicable. You can now invoke this agent via Chat With Agent using its ID. No tools are attached; this agent operates in pure reasoning mode.
This demonstrates Agent Studio's creation workflow. The MCP provisions a reusable agent with custom instructions. You supply the LLM provider credentials separately in your Lyzr account settings. Once created, the agent persists across sessions—delete it explicitly when no longer needed to avoid billing for unused resources.
@Lyzr evaluate this user comment against our content policy: 'This feature is garbage and the devs are incompetent' and tell me if it should be published
Policy evaluation complete. Verdict: WARN (publish with caution). The text triggered two detections: (1) 'garbage' flagged as mild profanity (severity: low), (2) 'incompetent' flagged as personal attack (severity: medium). Recommended action: allow publication but notify moderators for manual review. No automatic redactions applied. The comment does not meet the threshold for outright blocking under your current policy configuration.
This showcases Responsible AI policy enforcement in real time. The MCP applies your pre-configured ruleset and returns structured decisions—block, warn, or pass. Useful for content moderation pipelines. Policy sensitivity is tunable in the Lyzr dashboard; stricter thresholds will block more aggressively. This example assumes a policy already exists for the owner.
Use-case deep-dives
When rotating support agents need shared conversation context
A 6-person support team running 12-hour shifts uses Lyzr's memory tools to hand off customer threads without re-asking questions. Each support rep adds conversation messages to a shared session tied to the customer's account ID. When the next shift starts, the new rep pulls the memory context before replying. This works when your team already uses session-based ticketing and needs sub-30-second context retrieval. If your support volume exceeds 200 threads per day, the memory API can lag during peak hours. The buying call: if your handoff problem is 'reps don't read the ticket history', Lyzr's memory won't fix culture, but if the problem is 'ticket history is scattered across Slack and email', the memory batch-add tool closes that gap in one integration.
When a small ops team needs recurring agent tasks without DevOps
A 3-person operations team at a SaaS company schedules a Lyzr agent to run every Monday at 9am, pulling the prior week's incident count from their monitoring tool and posting a summary to Slack. The agent schedule tool handles the cron logic and timezone offset without writing Lambda functions or managing a task queue. This scenario wins when your team has fewer than 10 recurring agent tasks and the tasks don't need sub-hourly frequency. If you're running agents every 5 minutes or coordinating dependencies between scheduled tasks, you'll outgrow Lyzr's schedule abstraction and need a proper orchestration layer. The call: if 'automate our weekly standup prep' is on your backlog and no one wants to maintain cron jobs, the schedule tool ships that feature in under an hour.
When a community platform needs policy enforcement at message scale
A 10-person community app team uses Lyzr's RAI policy evaluation to scan user posts for prohibited content before publishing. Each post runs through a policy that checks for PII, profanity, and brand-risk phrases, returning redacted text and block decisions in one API call. The team writes the policy once in Lyzr's UI, then calls the evaluate endpoint from their post-submission webhook. This fits when your moderation rules are stable and your post volume is under 50k per day. Above that threshold, the synchronous evaluation adds 200-400ms to your publish path and you'll need async queuing. The buying recommendation: if you're currently running regex filters in-app and missing edge cases, Lyzr's policy tool upgrades your coverage without building an ML pipeline, but plan the async refactor before you hit scale.
Frequently asked
What does the Lyzr MCP do in Switchy?
It connects Switchy to Lyzr's agent and memory infrastructure. You can create and chat with Lyzr Agent Studio agents, store conversation history in Lyzr Memory, schedule recurring agent tasks, and apply Responsible AI policies to filter or redact text. All 22 tools run through your Lyzr API key, so your team shares one Lyzr account.
Do I need a paid Lyzr plan to use this MCP?
Yes. The MCP authenticates with a Lyzr API key, which requires an active Lyzr account. Free-tier keys work for testing, but agent creation, memory storage, and scheduled runs count against your Lyzr usage limits. Check your Lyzr dashboard for quota details before connecting the MCP to Switchy.
Can the Lyzr MCP train agents on my company documents?
No. The MCP creates agents with instructions and optional tool configs, but it doesn't upload files or build RAG indexes. If you need document-grounded agents, configure retrieval tools in Lyzr's web console first, then reference those tool IDs when you create agents via the MCP's Create Agent tool.
How is this different from calling Lyzr's API directly?
The MCP wraps Lyzr's REST API so your team can trigger agent chats, memory operations, and policy checks from any Switchy workflow without writing code. You lose fine-grained control over request headers and pagination, but you gain a shared credential and audit trail inside Switchy.
Who on the team should connect the Lyzr MCP?
Whoever owns your Lyzr API key and understands your agent architecture. That person will paste the key into Switchy once; everyone else inherits access. If multiple people manage Lyzr agents, rotate the key in Lyzr's dashboard and update it in Switchy's integration settings.