We've been exploring the intersection of AI and internet-native payments. Here's a demo of what we've built:<p>Our agent starts out pretty basic - it can chat, but can't access the internet. Then we give it a lightning wallet.<p>This simple addition, combined with the L402 protocol, opens up new possibilities:<p>1.The agent can now pay to use external tools<p>2.It accesses a web scraping service protected by L402<p>3.It scrapes web content and summarizes it<p>4.You can watch its wallet balance change in real-time<p>L402 is key here. It's a protocol that implements internet-native paywalls, allowing for seamless, programmatic payments.<p>We've put together a short video demonstrating this process:
<a href="https://youtu.be/wQ9rf5HtuhQ" rel="nofollow">https://youtu.be/wQ9rf5HtuhQ</a><p>For those interested in the technical details, we've open-sourced the code:
<a href="https://replit.com/t/fewsats/czjf93/repls/Web-Scraping-Agent-01-Public/view#main.py" rel="nofollow">https://replit.com/t/fewsats/czjf93/repls/Web-Scraping-Agent...</a><p>Key components:<p>AI agent: A large language model with chat capabilities<p>Wallet: Lightning Network integration for payments<p>L402 protocol: Enables internet-native paywalls<p>External tool: A web scraping service protected by L402<p>User interface: Shows the agent's thoughts and wallet balance<p>This demo shows an AI agent using one pre-integrated L402 tool. Next, we're working on agents that can discover and use any L402 tool on the fly. What possibilities do you see in this approach?