docs/guides/klavis-mcp-continue-cookbook.mdx
import { OSAutoDetect } from '/snippets/OSAutoDetect.jsx' import CLIInstall from '/snippets/cli-install.mdx'
<OSAutoDetect /> <Card title="What You'll Build" icon="wand-magic-sparkles"> A communication workflow assistant that uses Continue CLI with Klavis AI's Strata MCP to manage and automate multi-platform workflows including Slack and Gmail—all through simple natural language prompts. </Card>Before starting, ensure you have:
For all options, first: <Steps> <Step title="Install Continue CLI"> <CLIInstall /> </Step>
<Step title="Get Klavis AI's Strata URL"> 1. Visit [klavis.ai](https://www.klavis.ai/) and create an account 2. Navigate to your dashboard and generate [Strata URL](https://www.klavis.ai/home/mcp-servers) 3. Copy the Strata URL for configuration </Step> </Steps> <Step title="Add Klavis AI Strata MCP">
Add the following YAML configuration to your agent:
```yaml title="config.yaml"
name: klavis-strata
version: 0.0.1
schema: v1
mcpServers:
- name: klavis-strata
command: npx
args:
- "mcp-remote"
- "https://strata.klavis.ai/mcp/?strata_id=your_strata_id_here"
```
**Notes:**
- Keep your Klavis Strata URL secret and secure
- Ensure your Klavis account has Slack and Gmail integrations activated
- Complete OAuth flows for both Slack and Gmail in the Klavis dashboard
</Step>
<Step title="Test the Connection">
Launch Continue and ask:
```
Check my latest 5 emails and summarize them in a Slack message to #general.
```
</Step>
</Steps>
<Info>
**Pro tip**: Learn how to integrate and use [Klavis Strata](https://www.klavis.ai/docs/knowledge-base/use-mcp-server/continue) with Continue through CLI and IDE.
</Info>
<Step title="Launch Continue with Klavis MCP">
From your project root:
```bash
cn --agent your-agent-name
```
Now try:
```
"Send a Slack message to #general saying 'Hello from Continue!'"
```
</Step>
</Steps>
The agent will automatically detect and use your configuration along with the Klavis AI Strata MCP for multi-tool operations. </Accordion>
Use natural language to send messages, manage channels, and coordinate team communications through Slack.
<Info> **Where to run these workflows:** - **IDE Extensions**: Use Continue in VS Code, JetBrains, or other supported IDEs - **Terminal (TUI mode)**: Run `cn` to enter interactive mode, then type your prompts - **CLI (headless mode)**: Use `cn -p "your prompt" --auto` for automationTo run any of the example prompts below in headless mode, use cn -p "prompt" --auto
</Info>
Prompt:
Send a message to #engineering channel:
"Deploy completed successfully! Version 2.1.0 is now live."
Prompt:
Send a direct message to @sarah.chen:
"Hi Sarah, could you review the PR for the authentication refactor when you have a chance? It's ready for review."
Prompt:
Find the thread about "Q1 Planning" in #product-strategy from the last 2 days.
Reply with: "I've updated the roadmap document with the Q1 priorities we discussed. Link: [doc_url]"
Prompt:
List all public channels in the workspace that contain "engineering" or "dev" in the name.
Prompt:
Create a new Slack channel called #klavis-strata
Prompt:
Find and archive all channels with no messages in the last 90 days.
Manage email communications, automate responses, and coordinate notifications through Gmail.
Prompt:
Send an email to [email protected] regarding Weekly Status Update.
Prompt:
Read all unread emails from the last 24 hours.
Prompt:
Search my emails from the last 30 days containing "invoice" or "payment".
Prompt:
Send an email to [email protected] with subject "Monthly Report 2025" and attach the file: reports/monthly-2025-analytics.pdf
Combine Slack and Gmail for powerful multi-channel communication automation.
Prompt:
Send an announcement about Scheduled Maintenance @ Sat 2-6 AM EST to #engineering channel and also email to [email protected]
Prompt:
A critical bug has been reported (issue #2847 - payment processing failure). Send this urgent message to #engineering-alerts with issue description, assessment, and immediate action items. Finally, create a Slack thread for coordination and updates.
Prompt:
Schedule a sprint planning meeting:
Gmail invitations to: [email protected]
Subject: "Sprint 24 Planning - Q2 Roadmap"
Time: Next Monday, 10 AM EST
Duration: 2 hours
Slack notification to #engineering:
"Sprint Planning scheduled for Monday 10 AM EST
Please review the backlog before the meeting: [link]
Add agenda items to the shared doc by Friday."
Prompt:
Generate and distribute weekly status update:
1. Analyze my recent work (commits, PRs, issues closed)
2. Draft status summary with:
- Completed work
- In-progress items
- Blockers
- Next week's priorities
3. Send to Slack #team-updates (formatted for Slack)
4. Email to [email protected] (formal email format)
Prompt:
A customer reported an issue via email (support ticket #5234 - login problems).
1. Send acknowledgment email to [email protected]:
"We've received your report about login issues. Investigating now.
Ticket #5234 - Expected resolution: 4 hours"
2. Alert Slack #customer-support:
"New Priority 1 Ticket #5234: Login issues affecting Customer XYZ
Assigned to: @on-call-engineer
Details: [summary]"
3. Create Slack thread for internal coordination
Leverage Klavis AI Strata's integrations for comprehensive automation workflows.
<Info> Klavis AI Strata supports integrations with Notion, Linear, GitHub, Asana, Salesforce, HubSpot, and more. Combine these with Slack and Gmail to create powerful cross-platform workflows. </Info>Prompt:
Monitor GitHub for new pull requests in the main repository.
When a new PR is created:
1. Send Slack message to #code-reviews:
"New PR ready for review: [PR title]
Author: [name]
Changes: [summary]
Link: [github_url]"
2. If PR is labeled "urgent":
- Send Gmail to [email protected]
- Ping reviewer in Slack DM
Prompt:
After successful deployment to production:
1. Update Notion deployment log with:
- Version number
- Deployment timestamp
- Changes included
- Rollback procedure
2. Announce in Slack #announcements:
"Production deployment complete: v2.5.0
Release notes: [notion_link]"
3. Email [email protected] with:
- Executive summary of changes
- User-facing improvements
- Link to full documentation
Prompt:
Daily task synchronization:
1. Fetch high-priority tasks from Linear (assigned to me, due this week)
2. Create Notion task list with priorities and deadlines
3. Send Slack DM reminder about tasks due today
4. If any tasks are overdue, email [email protected] with status update
Prompt:
Generate end-of-sprint report:
1. Analyze completed work:
- Linear: Closed issues and story points
- GitHub: Merged PRs and code changes
- Notion: Sprint goals completion status
2. Create comprehensive report in Notion
3. Send summary to Slack #sprint-reviews
4. Email detailed report to [email protected] with:
- Velocity metrics
- Burndown chart
- Highlights and challenges
cn -p --auto "
Generate and distribute daily standup update:
1. Review my activity:
- GitHub commits and PRs from yesterday
- Linear tasks completed
- Calendar meetings attended
2. Draft standup summary:
- Yesterday: [completed work]
- Today: [planned work]
- Blockers: [any issues]
3. Post to Slack #daily-standups
4. If there are blockers, also send email to [email protected]
"
cn -p --auto "
When critical alert is triggered:
1. Send urgent Slack message to #on-call with:
- Alert details
- Severity level
- Affected systems
- Runbook link
2. Send SMS-style urgent email to on-call engineer
3. If not acknowledged in 5 minutes, escalate to backup on-call
4. Create incident thread in Slack for coordination
"
cn -p --auto "
New customer onboarding workflow:
1. Send welcome email via Gmail:
- Getting started guide
- Support contact information
- Link to documentation
2. Create Slack Connect channel with customer
3. Post introduction message in Slack with team members
4. Create customer record in Notion with:
- Contact information
- Onboarding status
- Key milestones
5. Add reminder in Linear for 7-day check-in call
"
cn -p --auto "
Generate weekly team digest (run every Friday at 4 PM):
1. Collect data:
- GitHub: PRs merged this week
- Linear: Issues closed, velocity metrics
- Slack: Key discussions and decisions
- Gmail: Important external communications
2. Create digest in Notion with sections:
- Accomplishments
- Challenges
- Next week's priorities
- Team shoutouts
3. Share to Slack #team-updates
4. Email summary to remote team members
"
After completing this guide, you have a complete AI-powered communication automation system that: