Show HN: Magic Loops – Combine LLMs and code to create simple automations
Howdy! We built this as an experiment in personal-programming, combining the best of LLMs and code to help automate tasks around you. I personally use it to track the tides and get notified when certain conditions are met, something that pure LLMs had trouble dealing with and pure code was often too brittle for.
We created it after getting frustrated with the inability of LLMs to deal with numbers and the various hoops we had to jump through to make ChatGPT output repeatable.
At the core, Magic Loops are just a series of "blocks" (JSON) that can be triggered with different inputs (email, time, webhook), then operate on those inputs using a combination of LLMs and code, and then output those results (email, text, webhook). Under the hood, the LLM calls are using GPT-4 via OpenAI and the code is run in sandboxed (no internet) Docker containers in AWS.
You have full control over each step of the loop, but you can also create (or attempt to create) a Magic Loop by simply describing what you want. We use GPT-4 to break that request into feasible steps, and then create a Magic Loop scaffold. Of course, you should still validate the loop before publishing it!
We've seen some neat use cases already:
- "Text me when the tide is less than 1ft between 7am and 7pm at Fort Funston"
- "Summarize an email using this format and forward it to this address"
- "Text me every time our store does more than $1000/day in volume on Shopify"
- "Take specific data from Cloudflare, format it, and send it to Mixpanel every hour"
We hope you enjoy what's essentially an experiment at this point. If folks like the concept, we're thinking about open sourcing it so you can run the loops locally with the code runtimes you wish (rather than in our code runners).
Let us know what you think, and more importantly, what you wish to build or automate!
Cheers, Adam & Mihai
This looks really cool! I really think an idea of a proper UI tool to chain different tools together is nice. https://flowiseai.com/ seems to be the most similar, but it's quite a bit more technical, and doesn't seem to be focused on doing the whole thing by itself - rather, you can create chains that can then be used through APIs.
I really hope you open-source this :)
I do like the way your UI strips out some of the ambiguity in how your initial prompt is interpreted by an LLM and allows for editing and parameterisation and IFTTT outputs. Especially since exactly how LLMs parse complex instructions is hard to test. There's definitely a sweet spot between "type instruction and hope for magical understanding" and "write the program yourself"
(though as it still involves LLMs I'd probably want to use it for stuff that sounds less mission critical than some of your examples!)
Would be good to see the open source code for sure. LLMs really struggle with Plan and Execute agents still and hopping off from tool to tool is a drag. This kind of architecture is less magical but more reliable
First of all, this is amazing/fantastic/cool as hell!
Second, this is what I remember Retool looking like long before it became a huge tool. I feel that this is a step towards building bespoke tools using LLM tech. (Of course, I'm sure others started in similar ways, but this is one I remember.)
This is very cool. I like how simple it is, and I think this is a nice first step towards making LLMs long-term useful for the layperson.
This all looks very cool! The generic API element is could be really useful as well and it seems like the LLM is pretty good at knowing some pretty common APIs. Would be really cool to run locally but could definitely see it as a business case as well. Way to go!
Will definitely play around with it more
I asked it to make a shit post on r/askReddit every minute and it got an error
File "/home/glot/main.py", line 1 var BLOCK_INPUT = `"If you could instantly become an expert in any one subject, what would it be and why?"`; ^ SyntaxError: invalid syntax
Isn't GPT 4 very costly? Plus you're running a scraper. How do you plan to keep this free, or is this just a teaser?
This may be useful but would love some clarity on how long you're gonna keep it like this.
Pretty cool tool, could turn into something really powerful.
Wow this is so cool, feels like it could be a better Zapier
This is great. Please consider low cost tier for non-business users, I think many HNers would be willing to pay for such automations
Hi! What a great personal project! I was trying to scrape a page and use GPT to analyze it, and then send me an email IF there was a certain type of (fuzzily defined) content on the page. How would I add the conditional check/step on the email block? Thanks!
heh, I was half-working on something like this. The ideal is to have one stack that can pipe
whisper voice input ("hey, could you tell me what alarms I have tomorrow?") ->
LLM command interpretation ("match input query to pre-defined commands and arguments", "LISTALARMS, , , 8, 2, 2023") ->
underlying script ("{'23:00', 'Doctor's Appointment'}") ->
natural re-statement ("re-word this data as an answer to the question xxx", "you have a doctor's appointment tomorrow at 11 o'clock PM") ->
so-vits/tortoise-tts/some TTS plugin
nodes could be fabbed out of single-use .py scripts, and the whole thing could be compiled into a headless script. endless possibilities.
Very cool usage of LLMs! Are you planning to build a business around this? Open source?
This is pretty fantastic, well presented and easy to understand. You definitely need to get in front of enterprise customers with this. It hits a lot of key asks from my enterprise customers, simple AI driven insights and automation.
Pretty cool concept. ChatGPT meets IFTTT. I could see myself using it for some automations in my life. However, I am not ready to trust you with my API keys just yet. ;)
Every few years, somebody reinvents Yahoo! Pipes.
Damn, this could get incredibly powerful. Nice work!
Looks Great tool. :)
Suggestion: please add the ability to use credential for social, to be able to perform social tasks.
This is dope. I wonder if you can automate a lot of the web scraping online using this UI
How do you plan to get around the gpt 4 rate limiting if this thing scales?
Are you willing to open source this?
What are you using to scrape?
undefined