[HN Gopher] Show HN: Magic Loops - Combine LLMs and code to crea...
       ___________________________________________________________________
        
       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
        
       Author : jumploops
       Score  : 42 points
       Date   : 2023-08-01 16:57 UTC (6 hours ago)
        
 (HTM) web link (magicloops.dev)
 (TXT) w3m dump (magicloops.dev)
        
       | warthog wrote:
       | 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
        
         | jumploops wrote:
         | Agreed, nobody wants to use a tool that stops working in a
         | month!
         | 
         | 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).
        
       | calabin wrote:
       | 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.
        
         | jumploops wrote:
         | Thanks calabin! We're pretty excited about the potential for
         | LLMs to democratize the ability to program computers (and
         | increasingly the world around us).
        
       | [deleted]
        
       | jwomers wrote:
       | 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!
        
         | jumploops wrote:
         | Great question! Right now the solution is pretty hacky, but if
         | your code block outputs to stderr then we stop the loop
         | execution.
         | 
         | 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 :)
        
       ___________________________________________________________________
       (page generated 2023-08-01 23:00 UTC)