- More personalized AI applications
- More reliable context retrieval
- Reduced unnecessary model interactions
- Reusable memory workflows
- Practical implementation patterns
Pick by compatibility
Every cookbook is tagged with its target environment. Filter the library to match your deployment stack.Start here
The fastest way to build something useful with PiyAPI.- Build an AI companion: Create a memory-powered assistant with a complete end-to-end lifecycle.
- Self-host with Ollama: Run a local AI workflow with Ollama and persistent context.
- Partition memory by entity: Scope memories strictly by user, agent, session, or application.
Essentials
Build a Companion with PiyAPI
Learn the complete memory lifecycle for persistent AI companions.
COMPANIONPartition Memory by Entity
Balance personalization with strict scoped context across boundaries.
ARCHITECTURETag and Organize Memories
Utilize categories and tags to accelerate retrieval, filtering, and auditing.
ORGANIZATIONExport Memories
Back up, migrate, and audit stored memory datasets.
DATA OPSCompanion Playbooks
Build assistants that retain user preferences, goals, and historic interaction states.Interactive Memory Demo
Execute persistent memory workflows inside a real application.
DEMOResearch Assistant for YouTube
Inject personalized context directly into video research and retrieval.
RESEARCHVoice-First AI Companion
Build a voice-first experience leveraging persistent context.
VOICEPersonalized AI Tutor
Maintain deterministic student progress state across sessions.
EDUCATIONSmart Travel Assistant
Persist traveler preferences and planning context.
TRAVELBuild a Node.js Companion
Create a strictly-typed JavaScript companion that retains user context.
SDKSelf-Hosted AI Companion
Deploy a complete memory-powered assistant onto local infrastructure.
SELF-HOSTEDOps & Automations
Leverage persistent context to automate recurring workflows and multi-step tasks.Automated Email Intelligence
Parse and retain relevant unstructured information from email pipelines.
AUTOMATIONContent Creation Workflow
Persist tone, style, and content guidelines as reusable context parameters.
CONTENTMulti-Session Research Agent
Execute asynchronous research workflows across sessions without context degradation.
RESEARCHMemory-Powered Support Agent
Inject historic customer context directly into support agent flows.
SUPPORTCollaborative Task Assistant
Coordinate multi-user workflows while maintaining strict context boundaries.
COLLABORATIONIntegrations & Platforms
Use PiyAPI memory inside the platforms and environments that power your AI workflows.Memory-Powered Agent SDK
Expose callable memory tools for autonomous agent workflows.
SDKMemory as an API Tool
Utilize persistent memory within strict function-calling environments.
APIPersistent Mastra Agents
Deploy persistent agents leveraging Mastra-based architectures.
FRAMEWORKHealthcare Context with ADK
Maintain compliant, relevant context across isolated agent sessions.
HEALTHCARESearch with Personal Context
Execute real-time search queries against persistent user profiles.
SEARCHBedrock with Persistent Memory
Integrate cloud AI infrastructure directly with PiyAPI memory stores.
CLOUDFrameworks & Multimodal
Explore cookbooks that combine PiyAPI with agent frameworks and multimodal applications.AI Agents with Memory
Build agents with native persistent memory storage.
AGENTSMulti-Agent Collaboration
Distribute relevant context securely across collaborating agent swarms.
MULTI-AGENTVisual Memory Retrieval
Combine parsed visual context alongside text-based conversation history.
MULTIMODALPersistent Persona
Maintain deterministic persona parameters and preferences for autonomous agents.
PERSONAContribute a Cookbook
Have a useful PiyAPI workflow or integration? Share it with the community.- Cookbook Template: Follow the standard structure for narrative, implementation steps, and end-to-end workflows.
- Contribution Guide: Learn how to submit your cookbook and prepare it for the repository.
Build something useful with PiyAPI?Share your cookbook and help other developers discover practical memory workflows.
