slides-generation-skillsAI-powered presentation generation using 2slides API. Create slides from text content, match reference image styles, or summarize documents into presentations. Use when users request to "create a presentation", "make slides", "generate a deck", "create slides from this content/document/image", or any presentation creation task. Supports theme selection, multiple languages, and both synchronous and asynchronous generation modes.
Install via ClawdBot CLI:
clawdbot install javainthinking/slides-generation-skillsGenerate professional presentations using the 2slides AI API. Supports content-based generation, style matching from reference images, and document summarization.
Users must have a 2slides API key:
SLIDES_2SLIDES_API_KEYexport SLIDES_2SLIDES_API_KEY="your_api_key_here"
Choose the appropriate approach based on the user's request:
User Request
โ
โโ "Create slides from this content/text"
โ โโ> Use Content-Based Generation (Section 1)
โ
โโ "Create slides like this image"
โ โโ> Use Reference Image Generation (Section 2)
โ
โโ "Create slides from this document"
โ โโ> Use Document Summarization (Section 3)
โ
โโ "Search for themes" or "What themes are available?"
โโ> Use Theme Search (Section 4)
Generate slides from user-provided text content.
Step 1: Prepare Content
Structure the content clearly for best results:
Title: [Main Topic]
Section 1: [Subtopic]
- Key point 1
- Key point 2
- Key point 3
Section 2: [Subtopic]
- Key point 1
- Key point 2
Step 2: Choose Theme (Required)
Search for an appropriate theme (themeId is required):
python scripts/search_themes.py --query "business"
python scripts/search_themes.py --query "professional"
python scripts/search_themes.py --query "creative"
Pick a theme ID from the results.
Step 3: Generate Slides
Use the generate_slides.py script with the theme ID:
# Basic generation (theme ID required)
python scripts/generate_slides.py --content "Your content here" --theme-id "theme123"
# In different language
python scripts/generate_slides.py --content "Your content" --theme-id "theme123" --language "Spanish"
# Async mode for longer presentations
python scripts/generate_slides.py --content "Your content" --theme-id "theme123" --mode async
Step 4: Handle Results
Sync mode response:
{
"slideUrl": "https://2slides.com/slides/abc123",
"pdfUrl": "https://2slides.com/slides/abc123/download",
"status": "completed"
}
Provide both URLs to the user:
slideUrl: Interactive online slidespdfUrl: Downloadable PDF versionAsync mode response:
{
"jobId": "job123",
"status": "pending"
}
Poll for results:
python scripts/get_job_status.py --job-id "job123"
Generate slides that match the style of a reference image.
Step 1: Verify Image URL
Ensure the reference image is:
Step 2: Generate Slides
Use the generate_slides.py script with --reference-image:
python scripts/generate_slides.py \
--content "Your presentation content" \
--reference-image "https://example.com/template.jpg" \
--language "Auto"
Optional parameters:
--aspect-ratio "16:9" # width:height format (e.g., "16:9", "4:3")
--resolution "2K" # "1K", "2K" (default), or "4K"
--page 5 # Number of slides (0 for auto-detection, max 100)
--content-detail "concise" # "concise" (brief) or "standard" (detailed)
Note: This uses Nano Banana Pro mode with credit costs:
Step 3: Handle Results
This mode always runs synchronously and returns:
{
"slideUrl": "https://2slides.com/workspace?jobId=...",
"pdfUrl": "https://...pdf...",
"status": "completed",
"message": "Successfully generated N slides",
"slidePageCount": N
}
Provide both URLs to the user:
slideUrl: View slides in 2slides workspacepdfUrl: Direct PDF download (expires in 1 hour)Processing time: ~30 seconds per page (30-60 seconds typical for 1-2 pages)
Generate slides from document content.
Step 1: Read Document
Use appropriate tool to read the document content:
Step 2: Extract Key Points
Analyze the document and extract:
Step 3: Structure Content
Format extracted information into presentation structure:
Title: [Document Main Topic]
Introduction
- Context
- Purpose
- Overview
[Section 1 from document]
- Key point 1
- Key point 2
- Supporting detail
[Section 2 from document]
- Key point 1
- Key point 2
- Supporting detail
Conclusion
- Summary
- Key takeaways
- Next steps
Step 4: Generate Slides
Use content-based generation workflow (Section 1). First search for a theme, then generate:
# Search for appropriate theme
python scripts/search_themes.py --query "business"
# Generate with theme ID
python scripts/generate_slides.py --content "[Structured content from step 3]" --theme-id "theme123"
Tips:
Find appropriate themes for presentations.
Search themes:
# Search for specific style (query is required)
python scripts/search_themes.py --query "business"
python scripts/search_themes.py --query "creative"
python scripts/search_themes.py --query "education"
python scripts/search_themes.py --query "professional"
# Get more results
python scripts/search_themes.py --query "modern" --limit 50
Theme selection:
If the 2slides MCP server is configured in Claude Desktop, use the integrated tools instead of scripts.
Two Configuration Modes:
"url": "https://2slides.com/api/mcp?apikey=YOUR_API_KEY""command": "npx", "args": ["2slides-mcp"]Available MCP tools:
slides_generate - Generate slides from contentslides_create_like_this - Generate from reference imagethemes_search - Search themesjobs_get - Check job statusSee mcp-integration.md for complete setup instructions and detailed tool documentation.
When to use MCP vs scripts:
Sync Mode (default):
Async Mode:
get_job_status.pyGenerate slides in multiple languages (use full language name):
--language "Auto" # Automatic detection (default)
--language "English" # English
--language "Simplified Chinese" # ็ฎไฝไธญๆ
--language "Traditional Chinese" # ็น้ซไธญๆ
--language "Spanish" # Espaรฑol
--language "French" # Franรงais
--language "German" # Deutsch
--language "Japanese" # ๆฅๆฌ่ช
--language "Korean" # ํ๊ตญ์ด
And more: Arabic, Portuguese, Indonesian, Russian, Hindi, Vietnamese, Turkish, Polish, Italian
Common issues:
Error: API key not found
Solution: Set SLIDES_2SLIDES_API_KEY environment variable
Error: 429 Too Many Requests
Solution: Wait before retrying or check plan limits
Error: 400 Bad Request
Solution: Verify content format and parameters
For detailed API documentation, see api-reference.md
Includes:
Content Structure:
Theme Selection:
Reference Images:
Document Processing:
Generated Mar 1, 2026
Marketing teams can quickly generate polished pitch decks from product briefs or campaign outlines. The AI transforms bullet points into visually appealing slides with professional themes, saving hours of manual design work and ensuring brand consistency across presentations.
Educators and trainers can convert lecture notes or textbook content into structured slide decks. The tool supports multiple languages and concise summarization, making it ideal for creating engaging classroom materials or online course presentations efficiently.
Corporate analysts can upload lengthy reports (e.g., PDFs) to automatically generate executive summary slides. This helps distill complex data into key takeaways for stakeholder meetings, improving communication and decision-making processes.
Sales teams can use reference images of existing brand templates to generate new sales decks that match company style guidelines. This ensures visual consistency while allowing rapid customization for different clients or product launches.
Speakers and researchers can transform research papers or talk outlines into professional slide decks. The async mode handles longer content, while theme selection helps match the tone of academic or industry conferences.
Charge developers or businesses based on API usage credits, with tiered pricing for different resolutions (e.g., 1K/2K/4K slides). This model scales with user demand and encourages integration into third-party applications like content management systems.
Offer annual licenses to large organizations for unlimited or high-volume slide generation, including premium support and custom theme development. This provides predictable revenue and caters to industries with frequent presentation needs like consulting or education.
Partner with software platforms (e.g., LMS, CRM tools) to embed the slide generation as a branded feature. Revenue comes from licensing fees or revenue-sharing agreements, expanding market reach through existing user bases.
๐ฌ Integration Tip
Store the API key securely in environment variables and use the provided Python scripts to handle different generation modes, ensuring error handling for async jobs and theme searches.
Edit PDFs with natural-language instructions using the nano-pdf CLI.
Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.
Convert documents and files to Markdown using markitdown. Use when converting PDF, Word (.docx), PowerPoint (.pptx), Excel (.xlsx, .xls), HTML, CSV, JSON, XML, images (with EXIF/OCR), audio (with transcription), ZIP archives, YouTube URLs, or EPubs to Markdown format for LLM processing or text analysis.
็จ MinerU API ่งฃๆ PDF/Word/PPT/ๅพ็ไธบ Markdown๏ผๆฏๆๅ ฌๅผใ่กจๆ ผใOCRใ้็จไบ่ฎบๆ่งฃๆใๆๆกฃๆๅใ
Generate hand-drawn style diagrams, flowcharts, and architecture diagrams as PNG images from Excalidraw JSON
The awesome PPT format generation tool provided by baidu.