Enhance Your Lens Experience: Automate Post Creation with Gelato’s Web3 Functions & OpenAI

Gelato Team

May 26, 2023

Sit back and relax, as your Lenster profile comes alive with fresh content 3 times a day—absolutely free for the first 1000 posts!

Through the combined power of Gelato's Web3 Functions and OpenAI, content generation and scheduling on Lens is fully automated. Simply enter your creative prompts, and OpenAI transforms them into engaging posts. Gelato's Web3 Functions then handle scheduling and publishing on Lens, 3 times daily.

Process Walkthrough

Create a Profile on Lenster

First, secure your Lens handle and log in to Lenster. Connect your wallet with WalletConnect or browser extension. If your address isn’t whitelisted, you won’t be able to create a Lens handle.

Create Lenster profile

Visit GelatoLensGPT

Navigate to the app, connect your wallet, and ensure you’re on Polygon. The connected account must match the one tied to your Lenster profile.

GelatoLensGPT UI

Set the Dispatcher

Click “Set Dispatcher.” Confirm the Metamask transaction to set Gelato Web3 Function’s dedicated msg.sender as your dispatcher. This step enables Gelato to post on your behalf.

Set dispatcher

Enter Your Prompt

Tip: Keep at least 5 MATIC in your account to set up the prompt!

Enter a prompt (10–160 characters) and hit “Set Prompt.” Confirm in Metamask, and OpenAI will generate your post instantly.

  • “What’s your best dad joke?”

  • “Give me a funny web3 startup idea.”

  • “Write my diary entry as if I were a PA to an eccentric crypto billionaire.”

  • “I need help with dating! Give me a web3 pickup line.”

Set prompt UI

Congratulations!

Your Lenster profile will now display a fresh AI-generated post—and the automation ensures 3 new posts daily, keeping your profile active and engaging.

Generated Lenster post

Technologies Powering the Process

Gelato Web3 Functions

Bridge on-chain contracts with off-chain data. Gelato automates publishing OpenAI’s content to LensHub at scheduled intervals.

OpenAI

Transforms your text prompts into creative content automatically posted via Gelato.

Lens Protocol

A decentralized, composable social graph. It ensures AI-generated content meets metadata standards and is published correctly.

Lenster

The social platform built on Lens Protocol where all generated posts appear for your followers to engage with.

Explore technical details in our technical blog post.

About Gelato Web3 Functions

Web3 Functions enable developers to create serverless, decentralized applications by integrating smart contracts with off-chain data, bridging both worlds seamlessly.

Get Started

Join the community on Discord.

Web3 Functions are live in private beta. Read the documentation or try the Hardhat template.

Apply here to be among the first testers.

Disclaimer

Gelato LensGPT Beta 1.0 is in testing and provided “as is.” Availability may change, and the Gelato community will sponsor the first 1000 posts.

Ready to build?

Start with a testnet, launch your mainnet in days, and scale with industry-leading UX.

Ready to build?

Start with a testnet, launch your mainnet in days, and scale with industry-leading UX.

Ready to build?

Start with a testnet, launch your mainnet in days, and scale with industry-leading UX.

Ready to build?

Start with a testnet, launch your mainnet in days, and scale with industry-leading UX.