Skip to main content

Builder AI

Builder AI is an agent inside the block builder. Describe what the macro should do and it writes the blocks for you. It reads the current workspace, can edit one chain or rewrite the whole macro, and every change is one undo step.

Open the assistant​

Click the robot button in the builder. In the app it sits with the builder's floating buttons; in the web Playground it is the round AI button in the bottom-right corner.

The first time, open the menu (⋮) → AI settings, choose a provider and model, and paste your own API key. The key is stored in the builder's local storage on your device.

Supported providers: OpenAI, Anthropic, Google Gemini, DeepSeek, xAI, Groq, OpenRouter, OpenCode Zen, Moonshot AI, and OpenAI/Anthropic-compatible custom endpoints.

What the agent can do​

  • Read the workspace as a compact macro DSL.
  • Write new blocks, edit existing chains, search the block list and use templates.
  • Undo its last change in one step.
  • Ask you a question when a requirement is ambiguous.

The agent only writes blocks. You run the macro yourself, so you stay in control of what touches the phone.

Web Playground differences​

The Playground runs the same agent bundle as the app, without a Pro check. Because a browser has no Android bridge:

  • Run and attach screen are hidden; use the generated Lua code with the app to run it.
  • Built-in provider requests go through /api/ai/proxy on androidmacro.com, so the browser is not blocked by CORS. The proxy forwards your key to the provider you chose and does not store it. Custom endpoints are called directly, so they must allow browser CORS.
  • Your key and chat history stay in this browser's local storage. Clearing site data removes them.

Example prompt​

Open com.example.shop, wait up to 10 seconds for "Login", tap it, type the
username from the "user" variable, then tap the button under "Welcome".
If "Update" appears, tap "Later" instead.