What is Smart Media?
Last updated
Last updated
Our Smart Media Framework enables builders to create reusable agentic templates that work across the entire Lens ecosystem. Build once, and your agent-powered content works everywhere.
One example of a Smart Media is a post that acts as a choose-your-own-adventure story where each version of the post is another page in the story, dictated by the participants in the comments. In this case, the creator specifies the context, writing style, and image generation settings for the post; the AI model simply generates the next page in the story based on this setup and the comments.
This is what we call a template
, a discrete type of smart media with its own developer-defined behavior and functionality.
What we just described is the Adventure Time template. Its post metadata is updated every hour based on the logic explained above. Every client in the Lens ecosystem supports it out of the box:
the latest page in the story is indexed by the Lens api and reflected in the post metadata
anyone that collects the post can participate in the story with their comment/upvote
This is just one example of what's possible with Smart Media templates—the only limit to creating new and engaging templates is the imagination of developers and creators.