Ollama Integration for Local AI Workflows
AdvantageBuilder brings Ollama’s powerful local AI models directly into your Windows automation workflows.
- Run local AI models with no cloud dependency or API keys
- Use Ollama models inside multi-step workflows and macros
- Build AI-powered tools using PowerShell, JScript.NET, and ClearScript V8
- Design reusable workflows with prompts, templates, and AI actions
- Integrate AI into Windows automation, file operations, and custom GUIs
Supported Ollama Models
AdvantageBuilder works with the full Ollama model ecosystem.
Build Local AI Workflows
Combine Ollama models with scripts, prompts, UI elements, and automation steps to build powerful workflows.
- Create multi-step workflows using AI, scripts, and data
- Design HTML or WinForms GUIs that call AI-powered macros
- Schedule workflows to run daily, weekly, or on demand
- Generate code, analyze files, and automate repetitive tasks
- Build custom tools for any domain using local AI
Example: Calling Ollama from AdvantageBuilder
JavaScriptV8 – AI Generated Fairy Tale
// --- Step 1: Generate a fairy tale using the AI helper ---
let aiParams = {};
aiParams.Model = "llama3.1:8b-instruct-q4_K_M";
aiParams.Prompt = "Write a short fairy tale suitable for narration. Keep it under 200 words.";
let fairyTale = callMacro(false, 'AI Ollama Helper', 'Macro Main Helpers', aiParams);
JavaScriptV8 – WinForms + SQLite + Ollama
// Load helpers
let winformsHelper = eval(getSourceCode("WinFormsHelper", "Macro Main Helpers\\Library", "WinFormsHelper"));
// Create a WinForms dialog
let mainForm = winformsHelper.CreateForm("AdvantageBuilder JS Demo");
mainForm.Height = 80;
// Add a multiline textbox
let txtInput = winformsHelper.AddTextBox(mainForm, "Enter text:", "AdvantageBuilder lets JavaScript build real desktop apps.");
winformsHelper.SetToMultilineTextBox(txtInput, 40, 300);
// Finalise layout
winformsHelper.FinaliseDialogForm(mainForm);
// Show dialog
if (mainForm.ShowDialog().ToString() == "OK")
{
let userText = txtInput.Text;
// --- Database (SQLite) ---
let connString = "Data Source=C:\\Demo\\data\\Demo.sqlite;Version=3;";
let connType = 6; // SQLite
let sql = "INSERT INTO Logs(message) VALUES('" + userText + "')";
let recordsAffected = ExecuteNonQuery(sql, connType, connString);
// --- AI Ollama helper ---
let aiParams = {};
aiParams.Model = "llama3.1:8b-instruct-q4_K_M";
aiParams.Prompt = "Summarize: " + userText;
let summary = callMacro(false, 'AI Ollama Helper', 'Macro Main Helpers', aiParams);
// --- File write using .NET ---
let File = clr.System.IO.File;
let Path = clr.System.IO.Path;
let base = Path.GetDirectoryName("C:\\Demo\\data");
let outFile = Path.Combine(base, "last_summary.txt");
File.WriteAllText(outFile, summary);
// Output
writeln("You entered: " + userText);
writeln(`Inserted ${recordsAffected} record(s).`);
writeln("AI summary: " + summary);
}
// Cleanup
winformsHelper.CleanUpForm(mainForm);
Watch: Build an Ollama Workflow
Download AdvantageBuilder
Start building local AI workflows with Ollama today.