Introduction to the Logic Engine

Meet the Logic Engine

Every system, every automation, every flow Ayami runs on your server goes through here. Visual or code, one single engine underneath — three tools, pick whichever fits you.

No programming, no custom syntax to write, every path leads to the same place: real automations, running 24/7 on your server.

If you've never heard of the Logic Engine, think of it as Ayami's automation engine, the piece that turns "when this happens, do that" into something that actually runs on your server, around the clock.

It sits behind everything: automatic welcomes, role systems, economy, moderation... every automation Ayami runs goes through the Logic Engine. And you choose how to talk to it: visually, with the Logic Builder or Logic Nodes, or in code, with Logic Script.

  • No code build everything by clicking, with the Logic Builder.
  • With code write your own logic, with Logic Script.
  • One single engine all three paths run on the same foundation underneath.
Zero installation: everything runs in the browser and on Discord
Minutes from the first click to the automation going live
1 engine Builder, Script, and Nodes read the same variables and events
Choose your path

Three ways to build

You can use just one, combine all three, or switch whenever you like, no automation is locked into a single path.

Logic Builder

Visual · drag and snap

Build flows just like snapping together building blocks. Pick a When, an If, and a Then from the menus, snap them in, save: done, it's already running. No coding required.

When someone joins the server
If they're not a bot
Then give the @Member role
  • Ideal if you've never coded before
  • Everything by clicks, no syntax to memorize
  • Great for welcomes, roles, moderation, XP
Get started with Logic Builder

Logic Script

Code · your own language

Write real code, in a custom language built for Discord, on, function, if, objects like user and channel ready to use. More control, more freedom, at your own pace.

on command("daily") do
  let valor = 100
  db.user(msg.author).add("coins", valor)
  msg.reply("+100 moedas!")
end
  • Ideal if you already think in logic or want to learn
  • Functions, variables, loops: full control
  • Great for economy systems, integrations, and complex rules
Get started with Logic Script

Logic Nodes

Visual · connected nodes

Build flows on a free canvas by wiring nodes together: an Event node fires the flow, Condition nodes decide the path, Action nodes carry it out. Visual, but with the structure of a real flowchart.

Event: command /welcome
Condition: has the Member role?
Action: send message
  • Ideal if you think in flowcharts and connections
  • Drag, connect, and organise nodes on a free canvas
  • Still in beta: new features landing every week
Explore Logic Nodes

Already know Logic Script and just need to look up a function? Jump straight to the quick reference →

Still not sure where to start?

Not to worry: most people start with the Logic Builder or Logic Nodes and move on to Logic Script when they fancy going deeper. All three use the same engine, so nothing gets lost.