About Services Tools Blog Contact us

Automatic Filling of Empty Fields

A local Ollama model (Phi) works through a structure item by item and fills missing details from written instructions, with checks showing what is still empty.

  • Agentic Workflows
  • Cross-sector
  • Agent skill
  • Product
  • Local/private
  • 2025

The problem

Writing titles, descriptions and links by hand for every item takes too long once the structure is designed. Empty required fields are easy to miss in a long list. So gaps went live unnoticed.

What it does

Written instructions for each type of item say where a value should come from, how to check it and what to use if nothing is found. Each run is logged as a task. The model fills the details using the surrounding items as context, and the checks report what is still blank.

Outcomes

  • Titles and descriptions are filled from the surrounding items.
  • Every run is logged, including failures.
  • A list shows the details that are still empty.
  • Single-item and batch runs follow the same instructions.

Simplified mockup

Interactive preview with sample data. Nothing is sent to a server.

Halebrook site 2 required still empty

Tree page instructions
Properties
Walking boots 1 of 2 required
Title
Empty
required
Description
Empty
optional
Link
/footwear/walking-boots
filled
Context the agent will pack
Parent N-214 Footwear Sibling N-339 mentions reproofing Fallback if title fails: section name

The link rule has no fallback. A missing address stays empty and the job is marked failed.

Job
Ready on N-338

Recent jobs

Populate runs
JobNodeWroteStatus
JOB-440N-339 Care guideslink refusedfailed
JOB-439N-214 Footwearname, slugcompleted
JOB-438N-100 Halebrook sitetitle, descriptioncompleted
Completed
2
Failed
1
Still flagged
2
title and link
Fields written this week

Failed rows stay in the list. JOB-440 is why Care guides is still flagged.

Page instructions

Title required

Take the page heading. If that is missing, use the social title.

10–60 characters. Fallback: the section name.

Description optional

Use the summary meta text, otherwise the first paragraph.

50–160 characters. Fallback: first paragraph.

Link required

Use the canonical address already on the page. Do not invent one.

Must be a path or a full address. No fallback: leave it empty and fail the job.

Same rules for one node or a batch

A batch walks children with these instructions. A node whose required link has no source is recorded as failed and left for a person.

How it works

  1. Pick an item whose required details are empty.
  2. Log a task and mark it as in progress.
  3. Gather context from the items around it, guided by the written instructions.
  4. Ask the local model for the missing details and save the answer.
  5. Check the result against the completeness rules and record the outcome.

Pipeline

flowchart LR
  A[Empty node] --> B[Job]
  B --> C[Context]
  C --> D[Phi on Ollama]
  D --> E[Properties]
  E --> F[Completeness check]