Agent Mode
Agent Mode connects your terminal session to an AI model (Claude, GPT-4, Gemini, or a local Ollama instance). You give the agent a plain-language instruction and it reads the current screen, decides which keys to press, and executes them automatically, one step at a time, with full visibility.
Connect to your session
Agent Mode works on any connected session. Connect to your AS/400, z/OS, or Linux system as described in the Getting Started tutorial.
Open Agent Mode
Click Tools > Agent Mode or press Ctrl+Shift+A. The Agent panel slides in from the right.
Choose a provider and enter your API key
Select your LLM provider from the dropdown (Claude, GPT-4, Gemini, Ollama). If the key is not pre-configured by your admin, enter it in the API Key field. Keys are stored in your browser's local storage and never sent to Infomanta's servers.
Type a natural-language instruction
Click the text area and describe what you want the agent to do. Be specific, include the screen name, field names, or values where you know them.
Watch the agent execute
The agent reads the current screen, sends it to the LLM, receives the next action (e.g. "type DEMO in field at row 7 col 23"), executes it, reads the updated screen, and repeats. Each step is logged in the Agent Log panel.
Intervene or stop the agent
Click the Stop button at any time to interrupt the agent. The terminal returns to full manual control immediately. You can then continue typing manually or start a new agent instruction.
Save the agent's actions as a script
After a successful agent run, click Save as Script in the agent panel. The agent's actions are converted to a JavaScript automation script and opened in the Script Editor.
Best practices
Agent Mode works best when your instructions are specific. A few tips for reliable results:
- Name the screen you expect: "On the Sign On screen, type…"
- Provide exact values: "Enter customer number 00042"
- Use F-key names the agent understands: "Press F6 to add a new record"
- For local/offline use, install Ollama and select the Ollama provider, no API key needed
- Keep instructions to one task at a time; chain tasks by running the agent multiple times