Convert a URL to LLM friendly input
In this tutorial, learn how to convert URLs into LLM-friendly markdown using Jina's Reader service and integrate it with Bubble's API connector.
Introduction
In today's digital landscape, leveraging large language models (LLMs) for web content analysis can offer substantial advantages. One of the effective ways to do this is by converting website URLs into Markdown format, making the content LLM-friendly. This blog post explores a straightforward approach using a service called Reader by Jina, and demonstrates how to integrate this process into a Bubble app for real-time usage.
Using Jina Reader for URL Conversion
Converting a URL into Markdown with Jina Reader is incredibly simple. Even without an API key, you can experiment with the service directly from their webpage. This serves as a valuable tool, especially if you want to process content from competitors' websites and run analyses using an LLM.
To grasp the power of Jina Reader, let’s explore its application within a Bubble app. Here, we’ll illustrate how to set up a simple form using the Bubble API connector that outputs results in Markdown format. This is especially useful for users interested in comparing website content with the assistance of an LLM.
Step-by-Step Guidance
- Initial Setup: Begin by appending the target URL to the end of Jina's service endpoint (rgena.ai). If you forego an API key, brace yourself for rate limitations, but it's adequate for testing purposes. For the demo, run a test to see the structured Markdown data output.
- Integrating with Bubble API Connector: Navigate to your Bubble app's API Connector, add Jina as a new service, and incorporate it as an action within a workflow. This allows user input to be dynamically converted into a Markdown format.
- Creating a User Interface: Construct a new page in your Bubble app titled "Convert URL to Markdown". Although design won't be the main focus, using rows and columns is recommended for an optimized layout. The page will contain an input field for the URL, a button to trigger the request, and a text area to display the Markdown result.
- Custom States for Temporary Data: Use custom states within Bubble to temporarily store and display data, avoiding database save operations. This ensures quick updates during user interaction, though the data will be lost upon page refresh or navigation.
- Handling the Response: After initializing the API call, parse the returned text into the designated custom state. This setup facilitates displaying the Markdown directly on your app page.
Advanced Applications and Considerations
For more complex web scraping requirements, consider scraping results pages from platforms like Airbnb. Be cautious as many websites have anti-scraping mechanisms. For advanced tasks like extracting specific data points (such as ratings) and returning JSON structured data, tools like Claude’s JSON mode can simplify these processes.
Explore our video tutorials and guides for deeper insights on using AI APIs effectively, particularly with OpenAI and Bubble.
Master Bubble & Launch Your MVP
Embark on your Bubble.io journey with our Free Access, or accelerate your progress with the 90-Day Pass for just $99.
Start building with total confidence
No more delays. With 30+ hours of expert content, you’ll have the insights needed to build effectively.
Find every solution in one place
No more searching across platforms for tutorials. Our bundle has everything you need, with 500+ videos covering every feature and technique.
Dive deep into every detail
Get beyond the basics with comprehensive, in-depth courses & no code tutorials that empower you to create a feature-rich, professional app.
Can't find what you're looking for?
Search our 300+ Bubble tutorial videos. Start learning no code today!
Frequently Asked Questions
Find answers to common questions about our courses, tutorials & content.
No. Our Beginner Essentials course and AI No-Code Coach are designed for total newcomers. You’ll learn Bubble.io step by step - no coding required.
Simply type your question in plain English, and our AI taps into the entire video library to recommend the exact lessons you need. It’s like having a personal instructor on demand.
- Free Plan: Enjoy unlimited access to the Beginner Essentials course.
- 90-Day Pass: Unlock all 500+ videos and full AI functionality for 90 days. Afterward, you can subscribe at a great rate to keep building and learning.
Our AI No-Code Coach is your first stop. If you need deeper help, consider optional 1:1 coaching for personalized guidance. We also host occasional community events to share tips and celebrate wins together.
After your pass ends, you’re free to continue with a cost-effective subscription that includes ongoing AI No-Code Coach access and any future content updates.
Absolutely. If you don’t see real progress within 30 days of your 90-Day Pass, let us know, and we’ll issue a full refund—no questions asked.