Examples
Content Generation
Generate new content from your existing knowledge base
Learn how to use the Senso generate API to create new content based on your existing knowledge base.
What You’ll Learn
This guide covers:
- Using the
/generate
endpoint to create content - Filtering generation by categories and topics
- Saving generated content for future use
- Understanding source attribution
How Generation Works
The generate API:
- Searches your knowledge base for relevant content
- Uses AI to synthesize information from multiple sources
- Creates new content following your instructions
- Optionally saves the result as new content
Basic Content Generation
Filtered Generation
Generate content from specific categories or topics:
Advanced Generation Examples
Email Template Generation
Comparison Chart
Training Material
Understanding the Response
The generate API returns detailed information about the generation:
Best Practices
- Be specific with content_type: Describe exactly what kind of content you’re looking for
- Clear instructions: Provide detailed instructions for better results
- Optimize max_results: More sources provide comprehensive content but take longer
- Save strategically: Only save generated content you’ll reuse
- Review sources: Check which content was used to ensure accuracy
Error Handling
Use Cases
Dynamic Documentation
Generate up-to-date documentation that reflects your latest content:
Content Summarization
Create executive summaries from detailed content:
Next Steps
- Use prompts and templates for consistent generation
- Create reusable snippets from generated content
- Organize content with categories for better generation
- Set up automated workflows with generated content