248 points · by jumploops · 3y ago · 49 comments
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
I really hope you open-source this :)
Is there no way to bypass this currently?
Update: You should be good to go now, all the instances have been replaced.
(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!)
We see a future where the code can be "self-healing" as well, with user approval of course.
Most of the code is actually pretty simple, the complexity comes from the code runners and the infra needed to support the various integrations.
To open source it, we'll need to create some local code-runner alternative, as not everyone wants to spin up AWS resources. With that said, we're excited about running this locally ourselves (e.g. scripting various things on-device).
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.)
Will definitely play around with it more
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
Each block is editable, even if it doesn't seem so at first (including output!)
It's worth noting that this is not AutoGPT -- the initial generation is just a starting point, and that the actual loop configuration and validation is entirely within your control.
This may be useful but would love some clarity on how long you're gonna keep it like this.
For those finding the service useful already: we're also thinking about open sourcing it so you can just run the loops yourself to keep costs down.
It turns out that when you write simple programs, they often resemble what you'd find on Zapier or IFTTT :)
As an example in Javascript, simply calling `throw new Error('break!')` will stop the run from continuing.
We plan to add conditionals, branching, etc. Baby steps :)
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.
Our current plan is to keep Magic Loops running as long as people seem to like it (and especially because I track the tides with it!), but we also think it could be super powerful to run locally, so we're hoping to open-source it at some point as well.
Right now the code blocks can't access the internet, but the possibilities will be endless when that lands.
Would love any integration requests!
Suggestion: please add the ability to use credential for social, to be able to perform social tasks.
Also, we hope that an open-source version will allow folks to do more with their own keys.