<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[ProjTL]]></title><description><![CDATA[ProjTL]]></description><link>https://projtl.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Dec 2026 22:48:29 GMT</lastBuildDate><atom:link href="https://projtl.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Turning WhatsApp Messages into Tasks with an LLM: Structured Output for Work Management Apps]]></title><description><![CDATA[Turn WhatsApp messages into tasks with an LLM in TypeScript. Zod schema, date and assignee guards, one retry and tests for work management apps.]]></description><link>https://projtl.hashnode.dev/turning-whatsapp-messages-into-tasks-with-an-llm-structured-output-for-work-management-apps</link><guid isPermaLink="true">https://projtl.hashnode.dev/turning-whatsapp-messages-into-tasks-with-an-llm-structured-output-for-work-management-apps</guid><category><![CDATA[TypeScript]]></category><category><![CDATA[AI]]></category><category><![CDATA[whatsapp]]></category><category><![CDATA[Productivity]]></category><category><![CDATA[webdev]]></category><dc:creator><![CDATA[ProjTL]]></dc:creator><pubDate>Tue, 01 Dec 2026 10:10:29 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6af17fea53f71d7690938cf1/095d0cea-e01e-4b61-b1db-0163f5a3639b.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>If you build work management software, someone will ask for this: "Can I just WhatsApp a task in?" The easy half is calling an LLM. The hard half is making sure what comes back is safe to save. A model that returns a confident wrong date creates a task nobody notices until it is late.</p>
<p>This post builds the safe half in TypeScript: a schema, a prompt, validation guards, one retry, and tests. The model call is injected, so it works with any provider.</p>
<h2>The problem with free-form output</h2>
<p>Take this message:</p>
<pre><code class="language-plaintext">Send the revised quote to the client by Friday
</code></pre>
<p>We want a draft task: a title, an optional assignee, an optional due date. Three things go wrong in practice:</p>
<ul>
<li>The model wraps JSON in prose or code fences.</li>
<li>It invents an assignee because the message sounded like it needed one.</li>
<li>It resolves "Friday" to a date in the past, or to a date that doesn't exist.</li>
</ul>
<p>None of these throw an error on their own. They produce a task that looks valid and is wrong. So the rule is simple: treat model output as untrusted input, the same as a form submission.</p>
<h2>Step 1: Define the shape with Zod</h2>
<pre><code class="language-ts">import { z } from "zod";

export const TaskDraft = z.object({
  title: z.string().trim().min(3).max(120),
  assignee: z.string().trim().min(1).nullable(),
  dueDate: z.string().regex(/^\d{4}-\d{2}-\d{2}$/).nullable(),
});
export type TaskDraft = z.infer&lt;typeof TaskDraft&gt;;

export type Extraction =
  | { ok: true; draft: TaskDraft }
  | { ok: false; reason: "invalid_json" | "invalid_shape" | "gave_up" };
</code></pre>
<p><code>assignee</code> and <code>dueDate</code> are nullable on purpose. "I don't know" has to be a legal answer, or the model will fill the gap with a guess.</p>
<h2>Step 2: Give the model today's date</h2>
<p>"By Friday" means nothing without a reference point. Pass today's date and the time zone in the prompt:</p>
<pre><code class="language-ts">export function buildPrompt(message: string, today: string, timeZone: string): string {
  return [
    "Extract one task from the chat message.",
    'Reply with JSON only: {"title": string, "assignee": string | null, "dueDate": "YYYY-MM-DD" | null}.',
    `Today is ${today} (${timeZone}).`,
    "Set assignee only if a person is named in the message. Otherwise null.",
    "Set dueDate only if the message gives a date or a day. Otherwise null.",
    `Message: """${message}"""`,
  ].join("\n");
}
</code></pre>
<p>The two "Otherwise null" lines do real work. Without them, models tend to be helpful in the worst way.</p>
<h2>Step 3: Validate before you trust</h2>
<pre><code class="language-ts">function isRealDate(value: string): boolean {
  const [y, m, d] = value.split("-").map(Number);
  const date = new Date(Date.UTC(y, m - 1, d));
  return (
    date.getUTCFullYear() === y &amp;&amp;
    date.getUTCMonth() === m - 1 &amp;&amp;
    date.getUTCDate() === d
  );
}

export function parseModelOutput(raw: string, message: string, today: string): Extraction {
  const cleaned = raw.trim().replace(/^```(?:json)?\s*|\s*```$/g, "");

  let json: unknown;
  try {
    json = JSON.parse(cleaned);
  } catch {
    return { ok: false, reason: "invalid_json" };
  }

  const parsed = TaskDraft.safeParse(json);
  if (!parsed.success) return { ok: false, reason: "invalid_shape" };

  const draft = { ...parsed.data };

  // Never trust an assignee the message does not contain.
  if (draft.assignee &amp;&amp; !message.toLowerCase().includes(draft.assignee.toLowerCase())) {
    draft.assignee = null;
  }

  // Drop impossible or past dates instead of saving them.
  if (draft.dueDate &amp;&amp; (!isRealDate(draft.dueDate) || draft.dueDate &lt; today)) {
    draft.dueDate = null;
  }

  return { ok: true, draft };
}
</code></pre>
<p>Two guards matter most:</p>
<ul>
<li><strong>Assignee must appear in the message.</strong> If the model says "Priya" and the message never mentions Priya, the field is dropped. An unassigned task is better than one assigned to the wrong person.</li>
<li><strong>Dates must be real and not in the past.</strong> <code>2026-02-30</code> passes the regex but fails <code>isRealDate</code>. A past date means the model resolved the wrong week. Both become <code>null</code>, so the task is saved without a due date rather than with a wrong one.</li>
</ul>
<p>The date comparison works because ISO <code>YYYY-MM-DD</code> strings sort the same way dates do.</p>
<h2>Step 4: One retry, then stop</h2>
<pre><code class="language-ts">export async function extractTask(
  message: string,
  ctx: { today: string; timeZone: string },
  callModel: (prompt: string) =&gt; Promise&lt;string&gt;,
): Promise&lt;Extraction&gt; {
  for (let attempt = 0; attempt &lt; 2; attempt++) {
    const raw = await callModel(buildPrompt(message, ctx.today, ctx.timeZone));
    const result = parseModelOutput(raw, message, ctx.today);
    if (result.ok) return result;
  }
  return { ok: false, reason: "gave_up" };
}
</code></pre>
<p>If two attempts fail, return <code>gave_up</code> and ask the sender to rephrase. Looping until it works hides a bad prompt and burns tokens.</p>
<h2>Step 5: Pull messages out of the webhook</h2>
<p>WhatsApp Business Platform webhooks nest messages inside <code>entry[].changes[].value.messages[]</code>. This helper flattens that and keeps only text:</p>
<pre><code class="language-ts">type WhatsAppMessage = { id: string; from: string; type: string; text?: { body: string } };

export function textMessages(payload: any): WhatsAppMessage[] {
  return (payload?.entry ?? [])
    .flatMap((entry: any) =&gt; entry.changes ?? [])
    .flatMap((change: any) =&gt; change.value?.messages ?? [])
    .filter((m: WhatsAppMessage) =&gt; m.type === "text" &amp;&amp; m.text?.body);
}
</code></pre>
<p>Each message has an <code>id</code> that looks like <code>wamid.…</code>. Webhooks can be retried, so store that id and skip ones you have already processed. Otherwise a retry creates a duplicate task.</p>
<h2>Step 6: Test the guards, not the model</h2>
<p>You can't unit test an LLM, but you can test everything around it. Fixtures use a fixed <code>today</code> so "Friday" is deterministic:</p>
<pre><code class="language-ts">import { describe, it, expect } from "vitest";
import { parseModelOutput, extractTask, textMessages } from "./extract";

const today = "2026-12-01"; // a Tuesday
const msg = "Send the revised quote to the client by Friday";
const good = { title: "Send the revised quote to the client", assignee: null, dueDate: "2026-12-04" };

describe("parseModelOutput", () =&gt; {
  it("accepts a clean extraction", () =&gt; {
    expect(parseModelOutput(JSON.stringify(good), msg, today)).toEqual({ ok: true, draft: good });
  });

  it("strips code fences", () =&gt; {
    const raw = "```json\n" + JSON.stringify(good) + "\n```";
    expect(parseModelOutput(raw, msg, today).ok).toBe(true);
  });

  it("drops an assignee that is not in the message", () =&gt; {
    const raw = JSON.stringify({ ...good, assignee: "Priya" });
    const r = parseModelOutput(raw, msg, today);
    expect(r.ok &amp;&amp; r.draft.assignee).toBeNull();
  });

  it("keeps an assignee the message names", () =&gt; {
    const m = "Priya, send the revised quote by Friday";
    const raw = JSON.stringify({ ...good, assignee: "Priya" });
    const r = parseModelOutput(raw, m, today);
    expect(r.ok &amp;&amp; r.draft.assignee).toBe("Priya");
  });

  it("drops a date in the past", () =&gt; {
    const raw = JSON.stringify({ ...good, dueDate: "2026-11-27" });
    const r = parseModelOutput(raw, msg, today);
    expect(r.ok &amp;&amp; r.draft.dueDate).toBeNull();
  });

  it("drops an impossible date", () =&gt; {
    const raw = JSON.stringify({ ...good, dueDate: "2026-02-30" });
    const r = parseModelOutput(raw, msg, today);
    expect(r.ok &amp;&amp; r.draft.dueDate).toBeNull();
  });

  it("rejects prose", () =&gt; {
    expect(parseModelOutput("Sure! Here is your task.", msg, today)).toEqual({
      ok: false,
      reason: "invalid_json",
    });
  });
});

describe("extractTask", () =&gt; {
  it("retries once, then gives up", async () =&gt; {
    let calls = 0;
    const r = await extractTask(msg, { today, timeZone: "Asia/Kolkata" }, async () =&gt; {
      calls++;
      return "not json";
    });
    expect(calls).toBe(2);
    expect(r).toEqual({ ok: false, reason: "gave_up" });
  });
});

describe("textMessages", () =&gt; {
  it("pulls text messages out of a webhook payload", () =&gt; {
    const payload = {
      object: "whatsapp_business_account",
      entry: [{ changes: [{ field: "messages", value: { messages: [
        { id: "wamid.A", from: "15550001111", type: "text", text: { body: msg } },
        { id: "wamid.B", from: "15550001111", type: "image" },
      ] } }] }],
    };
    expect(textMessages(payload).map((m) =&gt; m.id)).toEqual(["wamid.A"]);
  });
});
</code></pre>
<p>All 9 pass with <code>vitest</code>.</p>
<h2>What this does not solve</h2>
<p>Validation catches impossible output. It can't catch plausible wrong output. If someone writes "by Friday" on a Friday, the model may pick today or next week, and both are valid dates. Nothing in the code can tell which one the sender meant.</p>
<p>That is why the last step should be a confirmation reply: send the parsed title, assignee and due date back in the chat before treating the task as final. The sender sees the date, and a wrong guess costs one correction instead of a missed deadline. Keep a human check on anything the model decided.</p>
<p>Also note that the assignee check is a substring match. It stops invented names, but it won't resolve "Priya" to the right Priya on a team of 40. Matching names to real users is a separate lookup.</p>
<h2>Wrapping up</h2>
<p>The pattern is small: strict schema, nullable fields, date context in the prompt, guards on the output, one retry, a confirmation message. The LLM call is the easy part. The value is in what you refuse to save.</p>
]]></content:encoded></item><item><title><![CDATA[How to Detect Circular Task Dependencies in TypeScript (With Tests)]]></title><description><![CDATA[Find circular task dependencies in TypeScript, report the exact loop, get a safe working order, and block bad links before saving. Includes tests.]]></description><link>https://projtl.hashnode.dev/how-to-detect-circular-task-dependencies-in-typescript-with-tests</link><guid isPermaLink="true">https://projtl.hashnode.dev/how-to-detect-circular-task-dependencies-in-typescript-with-tests</guid><category><![CDATA[TypeScript]]></category><category><![CDATA[algorithms]]></category><category><![CDATA[JavaScript]]></category><category><![CDATA[Testing]]></category><category><![CDATA[project management]]></category><category><![CDATA[project management software]]></category><dc:creator><![CDATA[ProjTL]]></dc:creator><pubDate>Mon, 16 Nov 2026 06:01:09 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6af17fea53f71d7690938cf1/6a9a0f36-c26d-4722-86a0-764d47d8d8a7.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h1>How to Detect Circular Task Dependencies in TypeScript (With Tests)</h1>
<p>Task A can't start until B is done. B is waiting on C. And C is waiting on A.</p>
<p>Nobody did anything wrong on their own. Each link made sense when someone added it. But together they form a loop, and a loop means none of these tasks can ever start.</p>
<p>Any tool that lets tasks block each other has to deal with this: project trackers, build systems, CI pipelines, migration runners. In this post we'll build a small, dependency-free TypeScript module that does three things:</p>
<ol>
<li><strong>Finds a cycle</strong> and tells you exactly which tasks are in it.</li>
<li><strong>Produces a working order</strong> where blockers always come first.</li>
<li><strong>Rejects a bad link before it is saved</strong>, instead of discovering the loop later.</li>
</ol>
<p>Everything below is tested, and the code is short enough to read in one sitting.</p>
<h2>The data model</h2>
<p>Keep the model boring. A plan is a map from each task to the tasks that block it:</p>
<pre><code class="language-ts">export type TaskId = string;

/** Maps a task to the tasks it depends on (its blockers). */
export type DependencyMap = Record&lt;TaskId, TaskId[]&gt;;
</code></pre>
<p>So <code>{ deploy: ["test"], test: ["build"], build: [] }</code> reads as: deploy waits for test, test waits for build, build waits for nothing.</p>
<p>One decision to make early is the direction of the arrows. Here, an edge from <code>A</code> to <code>B</code> means "A depends on B". Pick a direction and stick with it. Mixing the two is the most common source of confusing bugs in this kind of code.</p>
<h2>A cycle error worth reading</h2>
<p>"Invalid dependency" is a bad error message. The person who added the link needs to know <em>which</em> tasks form the loop so they can decide which link to remove. So we'll carry the path inside a custom error:</p>
<pre><code class="language-ts">export class CycleError extends Error {
  readonly cycle: TaskId[];

  constructor(cycle: TaskId[]) {
    super(`Circular dependency: ${cycle.join(" -&gt; ")}`);
    this.name = "CycleError";
    this.cycle = cycle;
  }
}
</code></pre>
<p>A cycle is represented as a closed path, with the first task repeated at the end: <code>["A", "B", "C", "A"]</code>.</p>
<h2>Step 1: Find the cycle with a depth-first search</h2>
<p>The classic approach is a depth-first search that colours each task with one of three states:</p>
<ul>
<li><strong>unvisited</strong>: we haven't looked at it yet</li>
<li><strong>in progress</strong>: it's on the path we are currently walking</li>
<li><strong>done</strong>: we've fully explored it and found no loop through it</li>
</ul>
<p>The key rule: if we walk into a task that is <strong>in progress</strong>, we have come back to something on our own path. That is a cycle.</p>
<pre><code class="language-ts">const UNVISITED = 0;
const IN_PROGRESS = 1;
const DONE = 2;

export function findCycle(deps: DependencyMap): TaskId[] | null {
  const state = new Map&lt;TaskId, number&gt;();
  const stack: TaskId[] = [];

  const visit = (id: TaskId): TaskId[] | null =&gt; {
    state.set(id, IN_PROGRESS);
    stack.push(id);

    for (const next of deps[id] ?? []) {
      const s = state.get(next) ?? UNVISITED;
      if (s === IN_PROGRESS) {
        // `next` is already on the current path: slice out the loop.
        return [...stack.slice(stack.indexOf(next)), next];
      }
      if (s === UNVISITED) {
        const found = visit(next);
        if (found) return found;
      }
    }

    stack.pop();
    state.set(id, DONE);
    return null;
  };

  for (const id of Object.keys(deps)) {
    if ((state.get(id) ?? UNVISITED) === UNVISITED) {
      const found = visit(id);
      if (found) return found;
    }
  }
  return null;
}
</code></pre>
<p>Why three states instead of a simple "visited" flag? Consider a diamond: <code>D</code> depends on <code>B</code> and <code>C</code>, and both depend on <code>A</code>. A plain visited flag would see <code>A</code> twice and wrongly call it a cycle. The "done" state says: we have been here, it was fine, move on. Only "in progress" means "this is on my current path".</p>
<p>The <code>stack</code> is what lets us report the loop itself. When we hit a task that is in progress, we find where it sits in the stack and slice from there. If the graph is <code>start -&gt; A -&gt; B -&gt; A</code>, the answer is <code>["A", "B", "A"]</code>. The <code>start</code> task leads into the loop but isn't part of it, so it is left out.</p>
<p>Complexity is O(V + E), where V is the number of tasks and E the number of links. Each task and each link is looked at once.</p>
<h2>Step 2: Produce a working order</h2>
<p>Finding a loop is only half the job. Most tools also need an order to work in. This is a topological sort, and Kahn's algorithm is a clean way to do it: repeatedly take tasks that have no unfinished blockers, then "unblock" whatever was waiting on them.</p>
<pre><code class="language-ts">export function workingOrder(deps: DependencyMap): TaskId[] {
  // Collect every task, including ones that only appear as a blocker.
  const ids = new Set&lt;TaskId&gt;(Object.keys(deps));
  for (const blockers of Object.values(deps)) blockers.forEach((b) =&gt; ids.add(b));

  const remaining = new Map&lt;TaskId, number&gt;();
  const unblocks = new Map&lt;TaskId, TaskId[]&gt;();
  for (const id of ids) {
    const blockers = [...new Set(deps[id] ?? [])];
    remaining.set(id, blockers.length);
    for (const b of blockers) {
      unblocks.set(b, [...(unblocks.get(b) ?? []), id]);
    }
  }

  const ready = [...ids].filter((id) =&gt; remaining.get(id) === 0);
  const order: TaskId[] = [];

  while (ready.length &gt; 0) {
    const id = ready.shift()!;
    order.push(id);
    for (const dependent of unblocks.get(id) ?? []) {
      const left = remaining.get(dependent)! - 1;
      remaining.set(dependent, left);
      if (left === 0) ready.push(dependent);
    }
  }

  if (order.length &lt; ids.size) {
    throw new CycleError(findCycle(deps) ?? []);
  }
  return order;
}
</code></pre>
<p>Two details are easy to miss:</p>
<ul>
<li><strong>Tasks that only appear as blockers.</strong> In <code>{ B: ["A"] }</code>, task <code>A</code> is never a key. If we only iterate over keys, <code>A</code> silently disappears from the order. Collecting ids from both keys and values fixes that.</li>
<li><strong>Duplicate links.</strong> If someone saves <code>D -&gt; B</code> twice, counting it twice would leave <code>D</code> waiting forever. Wrapping blockers in a <code>Set</code> removes the duplicates.</li>
</ul>
<p>The cycle detection comes for free. If a loop exists, none of its tasks ever reach zero blockers, so they never enter the order. When <code>order.length</code> comes up short, we know something is stuck, and we call <code>findCycle</code> to say exactly what.</p>
<h2>Step 3: Stop the bad link before it is saved</h2>
<p>Reporting a loop after the fact is useful. Preventing it is better. When a user adds a link, we can check whether it would close a loop, and reject it on the spot.</p>
<p>The logic is simple. Adding "<code>task</code> depends on <code>blocker</code>" creates a loop only if <code>blocker</code> already depends on <code>task</code>, directly or through other tasks. So we look for a path from <code>blocker</code> back to <code>task</code>:</p>
<pre><code class="language-ts">export function cycleIfAdded(
  deps: DependencyMap,
  task: TaskId,
  blocker: TaskId
): TaskId[] | null {
  if (task === blocker) return [task, task];

  const path = pathBetween(deps, blocker, task);
  return path ? [task, ...path] : null;
}

function pathBetween(deps: DependencyMap, from: TaskId, to: TaskId): TaskId[] | null {
  const seen = new Set&lt;TaskId&gt;();
  const walk = (id: TaskId, path: TaskId[]): TaskId[] | null =&gt; {
    if (id === to) return path;
    if (seen.has(id)) return null;
    seen.add(id);
    for (const next of deps[id] ?? []) {
      const found = walk(next, [...path, next]);
      if (found) return found;
    }
    return null;
  };
  return walk(from, [from]);
}
</code></pre>
<p>Used at the point where a link is created, it looks like this:</p>
<pre><code class="language-ts">const loop = cycleIfAdded(deps, "A", "C");
if (loop) {
  throw new CycleError(loop); // "Circular dependency: A -&gt; C -&gt; B -&gt; A"
}
</code></pre>
<p>The user sees the exact chain that would have formed, which is far more useful than "could not save".</p>
<h2>Test the edges, not just the happy path</h2>
<p>Cycle code looks right on a three-node example and then breaks on the cases nobody drew. These tests use Node's built-in test runner, so there are no dependencies to install:</p>
<pre><code class="language-ts">import { test } from "node:test";
import assert from "node:assert/strict";
import { findCycle, workingOrder, cycleIfAdded, CycleError, type DependencyMap } from "./dependencies.ts";

test("findCycle reports the exact loop", () =&gt; {
  const deps: DependencyMap = { A: ["B"], B: ["C"], C: ["A"] };
  assert.deepEqual(findCycle(deps), ["A", "B", "C", "A"]);
});

test("findCycle ignores the tail leading into a loop", () =&gt; {
  const deps: DependencyMap = { start: ["A"], A: ["B"], B: ["A"] };
  assert.deepEqual(findCycle(deps), ["A", "B", "A"]);
});

test("findCycle catches a task that depends on itself", () =&gt; {
  assert.deepEqual(findCycle({ A: ["A"] }), ["A", "A"]);
});

test("workingOrder includes tasks that only appear as blockers", () =&gt; {
  assert.deepEqual(workingOrder({ B: ["A"] }), ["A", "B"]);
});

test("workingOrder handles duplicate links and diamonds", () =&gt; {
  const deps: DependencyMap = { D: ["B", "C", "B"], B: ["A"], C: ["A"], A: [] };
  const order = workingOrder(deps);
  assert.equal(order[0], "A");
  assert.equal(order[3], "D");
});

test("cycleIfAdded blocks a link that closes a loop", () =&gt; {
  const deps: DependencyMap = { B: ["A"], C: ["B"] };
  // Making A depend on C would create A -&gt; C -&gt; B -&gt; A.
  assert.deepEqual(cycleIfAdded(deps, "A", "C"), ["A", "C", "B", "A"]);
});
</code></pre>
<p>The full suite has 11 tests, including a valid plan, a safe link, and a 2,000-task chain. All 11 pass on Node 22 with <code>node --test dependencies.test.ts</code>. On an older Node version, run the same file through <code>tsx</code>.</p>
<p>The edge cases worth keeping in your own suite are:</p>
<table>
<thead>
<tr>
<th>Case</th>
<th>Why it matters</th>
</tr>
</thead>
<tbody><tr>
<td>Task depends on itself</td>
<td>The smallest possible loop, and easy to forget</td>
</tr>
<tr>
<td>Tail leading into a loop</td>
<td>The reported cycle should exclude tasks that merely lead into it</td>
</tr>
<tr>
<td>Diamond (two paths to one task)</td>
<td>Not a cycle, so a naive "visited" flag gets it wrong</td>
</tr>
<tr>
<td>Blocker never listed as a key</td>
<td>It must still appear in the working order</td>
</tr>
<tr>
<td>Duplicate links</td>
<td>They must not leave a task waiting forever</td>
</tr>
<tr>
<td>Disconnected groups</td>
<td>The search must start from every unvisited task, not just one</td>
</tr>
</tbody></table>
<h2>A note on recursion</h2>
<p><code>findCycle</code> and <code>pathBetween</code> are recursive, so a very deep chain could overflow the call stack. In a quick check on Node 22, a 50,000-task chain ran without problems. Real plans are far smaller than that, so recursion is fine for most uses. If you expect extreme depth, convert the search to use an explicit stack, which gives the same results.</p>
<h2>When to use which function</h2>
<table>
<thead>
<tr>
<th>You need to...</th>
<th>Use</th>
</tr>
</thead>
<tbody><tr>
<td>Validate a plan that already exists</td>
<td><code>findCycle</code></td>
</tr>
<tr>
<td>Decide what to work on, and in what order</td>
<td><code>workingOrder</code></td>
</tr>
<tr>
<td>Reject a bad link at save time</td>
<td><code>cycleIfAdded</code></td>
</tr>
</tbody></table>
<p>In practice you want all three. Check at save time so loops never get in, and keep the whole-plan check as a safety net for imported or edited data.</p>
<h2>Wrapping up</h2>
<p>A circular dependency is a small bug with a large effect: one wrong link and part of a plan can never move. The fix is not complicated:</p>
<ul>
<li>Represent the plan as a plain map of task to blockers.</li>
<li>Use a three-state depth-first search to find a loop, and report the path.</li>
<li>Use Kahn's algorithm for a working order, and let it expose any stuck tasks.</li>
<li>Check every new link before saving it.</li>
<li>Test the awkward cases: self-links, diamonds, duplicates, and blockers that only appear as values.</li>
</ul>
<p>Copy the module, adapt the types to your own task shape, and add the tests that match your data.</p>
<p><em>Disclosure: this post is published by the</em> <a href="https://www.projtl.com"><em>ProjTL</em></a> <em>team. The code is a general technique for any task or build system and is not a description of how ProjTL is implemented.</em></p>
]]></content:encoded></item><item><title><![CDATA[Propose, Review, Apply: A State Machine for Human-in-the-Loop AI Planning]]></title><description><![CDATA[How to let an AI draft the work without letting it change anything until a person says so. AI is good at producing a first draft of a plan: tasks, dates…]]></description><link>https://projtl.hashnode.dev/propose-review-apply-a-state-machine-for-human-in-the-loop-ai-planning</link><guid isPermaLink="true">https://projtl.hashnode.dev/propose-review-apply-a-state-machine-for-human-in-the-loop-ai-planning</guid><dc:creator><![CDATA[ProjTL]]></dc:creator><pubDate>Fri, 13 Nov 2026 06:53:11 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6af17fea53f71d7690938cf1/52de1382-0ae9-4e4f-960f-4b0183d566ff.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>How to let an AI draft the work without letting it change anything until a person says so.</em></p>
<p>AI is good at producing a first draft of a plan: tasks, dates, dependencies, and estimates. It's much less good at knowing which parts of that draft are right for <em>your</em> project. A fit-out might be missing a permit step. A "franchise study" might be sensible for one business and absurd for another.</p>
<p>So the useful question isn't "Can the AI plan?" It's "How do you let it propose without letting it act?" The answer is a small state machine, and it fits in about a hundred lines of TypeScript.</p>
<p>This post walks through the pattern, the rules that make it safe, and tests that prove those rules hold.</p>
<h2>The shape of the flow</h2>
<p>Three steps, in order:</p>
<ol>
<li><strong>Propose.</strong> The AI drafts a plan. Every item starts as <em>pending</em>.</li>
<li><strong>Review.</strong> A person accepts, rejects, or edits each item and can add their own.</li>
<li><strong>Apply.</strong> Only after the plan is approved do accepted items become real work.</li>
</ol>
<p>Planning tools in this space tend to follow this shape. ProjTL's Atlas Planner is one example: a plan moves from Proposed to Approved to Applied, and nothing lands in a project until it's approved. The point of modelling it as a state machine is that those rules are enforced by code, not by convention.</p>
<h2>Model the states honestly</h2>
<p>Four plan states are enough:</p>
<p>ts</p>
<pre><code class="language-ts">export type PlanStatus = "proposed" | "approved" | "applied" | "rejected";
export type Decision = "pending" | "accepted" | "rejected";

export interface Item {
  id: string;
  title: string;
  estimateHours: number;
  decision: Decision;
  source: "ai" | "human"; // who put it in the plan
}

export interface Plan {
  readonly id: string;
  readonly status: PlanStatus;
  readonly items: readonly Item[];
  readonly appliedTo?: string; // target project, chosen at apply time
}
</code></pre>
<p>Two details matter here.</p>
<p><strong>Plan status and item decision are separate.</strong> A plan can be <code>proposed</code> while individual items are <code>pending</code>, <code>accepted</code> or <code>rejected</code>. Mixing the two into one field gets messy fast.</p>
<p><strong>Every item records its source.</strong> When a person adds their own task, it's marked <code>human</code>. That's not cosmetic. It's how you show, later, what the AI suggested and what a person added.</p>
<h2>Make every transition a pure function</h2>
<p>Each action takes a plan and returns a new one. Nothing is mutated:</p>
<p>ts</p>
<pre><code class="language-ts">function requireStatus(plan: Plan, ...allowed: PlanStatus[]) {
  if (!allowed.includes(plan.status)) {
    throw new PlanError(`Cannot do this while the plan is "${plan.status}".`);
  }
}

export const accept = (p: Plan, id: string) =&gt; {
  requireStatus(p, "proposed");
  return mapItem(p, id, (i) =&gt; ({ ...i, decision: "accepted" }));
};
</code></pre>
<p>Reviewing is only allowed while the plan is <code>proposed</code>. Once approved, the plan is locked. Editing a plan after approval, without anyone noticing, is precisely the class of bug this pattern exists to prevent.</p>
<p>Editing an item implies accepting it, since you wouldn't change something you wanted to reject:</p>
<p>ts</p>
<pre><code class="language-ts">export const modify = (p: Plan, id: string, patch: Partial&lt;Pick&lt;Item, "title" | "estimateHours"&gt;&gt;) =&gt; {
  requireStatus(p, "proposed");
  return mapItem(p, id, (i) =&gt; ({ ...i, ...patch, decision: "accepted" }));
};
</code></pre>
<h2>Approval has rules</h2>
<p>Approval is the gate, so it deserves the strictest checks:</p>
<p>ts</p>
<pre><code class="language-ts">export function approve(p: Plan): Plan {
  requireStatus(p, "proposed");
  if (p.items.some((i) =&gt; i.decision === "pending")) {
    throw new PlanError("Every item needs a decision before the plan can be approved.");
  }
  if (!p.items.some((i) =&gt; i.decision === "accepted")) {
    throw new PlanError("Nothing was accepted. Reject the plan instead.");
  }
  return { ...p, status: "approved" };
}
</code></pre>
<p>Two rules, both about honesty. You can't approve a plan with undecided items, because "approved" should mean a person looked at all of it. And you can't approve a plan where everything was rejected, because that's not an approval.</p>
<h2>Applying is the only step with side effects</h2>
<p>Everything before this was in-memory data. Applying is where tasks get created, so it gets the tightest guard, and it's idempotent:</p>
<p>ts</p>
<pre><code class="language-ts">export function apply(p: Plan, project: string): { plan: Plan; created: Item[] } {
  if (p.status === "applied") return { plan: p, created: [] }; // a second call creates nothing
  requireStatus(p, "approved");
  const created = p.items.filter((i) =&gt; i.decision === "accepted");
  return { plan: { ...p, status: "applied", appliedTo: project }, created };
}
</code></pre>
<p>Three design choices:</p>
<ul>
<li><strong>Only accepted items are created.</strong> Rejected and pending ones never reach the outside world.</li>
<li><strong>The target project is chosen here, not earlier.</strong> A plan can be reviewed before you decide where it lands.</li>
<li><strong>Applying twice is harmless.</strong> Double clicks and retries are normal. Without this, the same plan creates every task twice.</li>
</ul>
<h2>Prove it with tests</h2>
<p>A state machine is only as good as the rules it refuses to break, so the tests should mostly check that things <em>fail</em>:</p>
<p>ts</p>
<pre><code class="language-ts">// Cannot approve while anything is undecided.
assert.throws(() =&gt; approve(plan), PlanError);

// Cannot apply before approval.
assert.throws(() =&gt; apply(plan, "Cafe launch"), PlanError);

// Approve, then apply: only accepted items are created.
plan = approve(plan);
const result = apply(plan, "Cafe launch");
assert.deepEqual(result.created.map((i) =&gt; i.title),
  ["Register the business", "Fit-out", "Soft opening"]);

// Applying twice is safe.
assert.equal(apply(result.plan, "Cafe launch").created.length, 0);

// After approval the plan is locked.
assert.throws(() =&gt; accept(plan, "p1-t1"), PlanError);
assert.throws(() =&gt; addItem(plan, "Late idea", 5), PlanError);
</code></pre>
<p>I ran the full suite, which also covers rejecting a whole plan, unknown items, an empty proposal, and the check that the original plan object is never mutated, and all of it passes.</p>
<h2>What this buys you</h2>
<ul>
<li><strong>Trust.</strong> People can use AI drafts because nothing happens until they approve.</li>
<li><strong>An audit trail.</strong> Every item knows whether the AI proposed it or a person added it, and every plan knows where it was applied.</li>
<li><strong>Safe retries.</strong> Idempotent apply means a network hiccup can't create duplicates.</li>
<li><strong>Easy extension.</strong> Adding a "superseded" state for replaced plans, or per-item comments, is a small change to a typed model.</li>
</ul>
<h2>The takeaway</h2>
<p>When an AI proposes work, the interesting engineering isn't the proposal; it's the surrounding boundary. Keep proposals as plain data, make every transition a checked pure function, put side effects in one idempotent step, and let a person hold the gate. The result feels less like automation replacing judgement and more like automation preparing it.</p>
<p><em>The code above is a generic sketch of the pattern, not any product's internal implementation.</em></p>
]]></content:encoded></item><item><title><![CDATA[Skills vs Memory: Giving an AI Assistant Reusable Context]]></title><description><![CDATA[MemoryCheck: A blank prompt box is a strange thing to stare at every morning. You know what you want: a status update, a plan for the day, a check on…]]></description><link>https://projtl.hashnode.dev/skills-vs-memory-giving-an-ai-assistant-reusable-context</link><guid isPermaLink="true">https://projtl.hashnode.dev/skills-vs-memory-giving-an-ai-assistant-reusable-context</guid><dc:creator><![CDATA[ProjTL]]></dc:creator><pubDate>Thu, 12 Nov 2026 07:16:08 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6af17fea53f71d7690938cf1/bc21190e-09d7-41e6-97ac-404800b81f50.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>MemoryCheck: A blank prompt box is a strange thing to stare at every morning.</p>
<p>You know what you want: a status update, a plan for the day, a check on what’s slipping. But the assistant knows nothing about how you like it done, so you type the instructions out again. Same structure, same tone, same “and flag the risks at the end.” Tomorrow you do it again.</p>
<p>That repeated typing is a design smell. It means the assistant has no way to hold two different kinds of reusable context, and most products blur them together. I find it clearer to pull them apart.</p>
<p>Three kinds of context</p>
<p>Every request to an assistant carries three different things, even when they all arrive in one message:</p>
<pre><code class="language-plaintext">What it is	How long it lasts	Example
</code></pre>
<p>Request what you want right now: one conversation, “What did I miss while I was away?” Skill A: a reusable playbook: how to do a kind of job until someone edits it. “Catch me up.” Memory facts about you, your team, or your work until they go stale: “Weekly review is on Fridays.”</p>
<p>A skill is a procedure. Memory is a fact. The request is the occasion. Once you separate them, a lot of design questions get easier to answer.</p>
<p>What a skill looks like in practice</p>
<p>Atlas, the AI assistant in ProjTL, has a skills page, and its structure shows these ideas well. It describes the skills as ready-made playbooks for everyday work, and you pick one so Atlas follows it for your request. There are sixteen, in five groups:</p>
<p>Plan &amp; organise: Break down tasks, plan my day, plan my week, prioritise work, and plan meetings. Project plan: Meeting agenda, meeting notes to action track &amp; report: Catch me up, risk check, status update, workload check. Write: Draft message, write document, think it through: Brainstorm, Decision helper, Retrospective</p>
<p>(Figure: your skills screenshot goes here. Alt text: “The Skills page in ProjTL showing sixteen ready-made playbooks in five groups, each with a brief description and a Use button.”)</p>
<p>A few design choices on that page are worth copying.</p>
<p>Skills are named after jobs, not techniques. “Catch me up” and "risk check" describe what a person wants to be done. Nobody has to know how to phrase a good prompt.</p>
<p>Each card states its output. “A stakeholder-ready status update for one project or all of your projects” tells you what you’ll get before you click. A good skill description is a small contract.</p>
<p>The groups match how people think about their day. Planning, meetings, tracking, writing, and thinking are different moods, so the list scales without becoming a wall of options.</p>
<p>Each one is one action away. There’s a "Use" button on every card and a search field above them, so finding a skill costs less than retyping the prompt.</p>
<p>Why a playbook beats a blank prompt</p>
<p>The obvious benefit is saved typing. The more important one is consistency. If a team’s "status update" always has the same shape (progress, risks, decisions needed), everyone reads it the same way. The structure stops depending on whoever remembered to ask for it.</p>
<p>Playbooks are also reviewable. Because a skill is a named, stable thing, someone can read it, argue about it, and improve it. A prompt you improvised on Tuesday isn’t something a team can improve.</p>
<p>The failure modes are real, too. Skills can sprawl until nobody can find the right one. They can overlap: “Plan my day,” “Plan my week,” and "Prioritise work" are close cousins, so each needs a clearly different promise. And a skill can be too rigid, so it should supplement the request, never replace it.</p>
<p>Where memory fits</p>
<p>Memory answers a different question: what should the assistant already know? Your tone preference, the day a client review happens, and how a project names things. These are facts, not procedures, so they don’t belong in a playbook.</p>
<p>I’m keeping this part conceptual, because the useful lessons don’t depend on any one product. A few principles hold anywhere:</p>
<p>Scope it. A fact about one project shouldn’t leak into another, and a personal preference shouldn’t override an organization's rule unless that was the intent. Let the most specific scope win. If the organization says "formal" and you’ve said “short and direct,” your own setting should apply to you. Expire it. Facts go stale. A memory that was true six months ago can quietly mislead. Make it visible. Context that shapes answers without anyone being able to see it is difficult to trust. A tested sketch in TypeScript</p>
<p>Here’s one way to model the three layers. It’s an illustration of the idea, not a description of how any product is built internally.</p>
<p>ts type Scope = "org" | "project" | "user"; const SPECIFICITY: Record&lt;Scope, number&gt; = { org: 0, project: 1, user: 2 };</p>
<p>interface Skill { id: string; name: string; group: "Plan &amp; organise" | "Meetings" | "Track &amp; report" | "Write" | "Think it through"; summary: string; steps: string[]; output: string; }</p>
<p>interface MemoryItem { scope: Scope; ownerId: string; // org id, project id, or user id, depending on scope key: string; value: string; updatedAt: string; // ISO date }</p>
<p>interface Ctx { orgId: string; projectId?: string; userId: string }</p>
<p>const DAY = 24 * 60 * 60 * 1000;</p>
<p>/** Keep what applies to this caller, drop what is stale,</p>
<ul>
<li>Let the most specific scope win per key. */ function selectMemory(items: MemoryItem[], ctx: Ctx, now: Date, maxAgeDays = 180): MemoryItem[] { const applies = (m: MemoryItem) =&gt; (m.scope === "org" &amp;&amp; m.ownerId === ctx.orgId) || (m.scope === "project" &amp;&amp; ctx.projectId !== undefined &amp;&amp; m.ownerId === ctx.projectId) || (m.scope === "user" &amp;&amp; m.ownerId === ctx.userId); const fresh = (m: MemoryItem) =&gt; now.getTime() - new Date(m.updatedAt).getTime() &lt;= maxAgeDays * DAY;</li>
</ul>
<p>const winners = new Map&lt;string, MemoryItem&gt;(); for (const m of items.filter(applies).filter(fresh)) { const current = winners.get(m.key); if (!current || SPECIFICITY[m.scope] &gt; SPECIFICITY[current.scope]) winners.set(m.key, m); } return [...winners.values()].sort( (a, b) =&gt; SPECIFICITY[a.scope] - SPECIFICITY[b.scope] || a.key.localeCompare(b.key), ); }</p>
<p>/** Playbook (stable) + memory (persistent facts) + request (this time only). */ function buildPrompt(skill: Skill, request: string, memory: MemoryItem[]): string { if (!request.trim()) throw new Error("A skill needs a request to act on."); const steps = skill.steps.map((s, i) =&gt; <code>${i + 1}. ${s}</code>).join("\n"); const known = memory.length ? memory.map((m) =&gt; <code>- ${m.key}: ${m.value}</code>).join("\n") : "- (nothing stored)"; return [ <code>PLAYBOOK: ${skill.name}</code>, steps, <code>OUTPUT: ${skill.output}</code>, <code>KNOWN CONTEXT:\n${known}</code>, <code>REQUEST: ${request.trim()}</code>, ].join("\n\n"); }</p>
<p>Running it with a “Catch me up” skill produces:</p>
<p>text PLAYBOOK: Catch me up</p>
<ol>
<li>List overdue items</li>
<li>List items newly assigned to the user</li>
<li>Flag what needs a decision today</li>
</ol>
<p>OUTPUT: Three short lists, most urgent first</p>
<p>KNOWN CONTEXT:</p>
<ul>
<li>Client: weekly review on Fridays</li>
<li>tone: short and direct</li>
</ul>
<p>REQUEST: What did I miss while I was away?</p>
<p>I checked six behaviors with assertions, and all passed:</p>
<p>Another project’s memory and another user’s memory never appear. A user-level setting overrides an organization-level one for the same key. Memory older than the cutoff is dropped. The playbook section is identical across different requests, so only the request changes. The same inputs always produce the same prompt. A blank request is rejected instead of silently producing an empty job. A simple rule of thumb: if you’d write the same instructions again, make it a skill. If you’d repeat the same fact again, make it a memory. If it’s only true today, put it in the request. Where this shows up in ProjTL</p>
<p>In ProjTL, Atlas works from exactly this kind of playbook page. Pick a skill such as Catch Me Up or Risk Check, and Atlas follows it for your request. A playbook makes the shape of the answer more predictable. It doesn’t make the answer correct, which is why Atlas carries the note “Atlas can make mistakes." Check changes before you apply them.” A reusable playbook is a convenience, and you still check the result.</p>
<p>A short checklist if you’re building one: name skills after jobs, not techniques. State the output in one line on every skill. Keep skills few and clearly different from each other. Scope memory, and decide which scope wins. Give memory an expiry. Let people see what context shaped an answer.</p>
<p>If your assistant makes you retype the same instructions every day, which of those three layers is it missing?</p>
]]></content:encoded></item><item><title><![CDATA[Tasks, Organized From Chat Messages to Trackable Tasks: The Engineering Challenge Behind Conversational Project Management]]></title><description><![CDATA[A simple message in a team chat can sometimes contain the starting point of an entire piece of work. Consider this: "Can someone fix the login issue before…]]></description><link>https://projtl.hashnode.dev/tasks-organized-from-chat-messages-to-trackable-tasks-the-engineering-challenge-behind-conversational-project-management</link><guid isPermaLink="true">https://projtl.hashnode.dev/tasks-organized-from-chat-messages-to-trackable-tasks-the-engineering-challenge-behind-conversational-project-management</guid><dc:creator><![CDATA[ProjTL]]></dc:creator><pubDate>Wed, 11 Nov 2026 07:06:59 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6af17fea53f71d7690938cf1/fdfccbf4-dd2c-43e6-a260-8a93e045fddb.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>A simple message in a team chat can sometimes contain the starting point of an entire piece of work.</p>
<p>Consider this:</p>
<p>"Can someone fix the login issue before Friday? Users are still reporting failed sign-ins."</p>
<p>Anyone reading that message can understand what's being requested. There's a login problem, someone needs to investigate it, and there's a deadline to meet.</p>
<p>But from a project management perspective, there's still quite a bit of information missing.</p>
<p>Who should handle it? How serious is the issue? Is there already a bug report? What exactly needs to be fixed, and how will the team know when the work is complete?</p>
<p>This is where conversational project management becomes more interesting from an engineering perspective.</p>
<p>The challenge isn't simply building an AI assistant that understands messages. It's developing a system that can turn everyday conversations into properly structured, trackable work without misunderstanding the original intent.</p>
<p>And getting that right involves much more than natural language processing.</p>
<ol>
<li><strong>Understanding What Someone Means Is Only the Beginning</strong></li>
</ol>
<p>People don't communicate the way task management forms are designed.</p>
<p>Nobody normally sends a message containing a neatly organized task title, description, assignee, priority, deadline, and project name.</p>
<p>Instead, people use short sentences, abbreviations, incomplete instructions, and references to conversations that happened earlier.</p>
<p>For example:</p>
<p>"Please get the payment bug sorted before the next release. Ask Rahul to check it."</p>
<p>A conversational system needs to identify several pieces of information from that one message.</p>
<p>It needs to recognise:</p>
<p><strong>Action:</strong> Investigate and fix the payment bug.</p>
<p><strong>Potential assignee:</strong> Rahul.</p>
<p><strong>Deadline:</strong> Before the next release.</p>
<p><strong>Work type:</strong> Bug.</p>
<p><strong>Project:</strong> Requires additional context.</p>
<p><strong>Priority:</strong> Not explicitly specified.</p>
<p>Notice that some information is clear, while other details are still uncertain.</p>
<p>The system might identify Rahul as the intended assignee, but it still needs to establish which project the bug belongs to and when the next release is scheduled.</p>
<p>This distinction is important.</p>
<p>A reliable system should know the difference between information directly provided by the user, details that can be resolved from existing context, and information that is still missing.</p>
<p>Making assumptions without checking them can result in incorrect assignments, duplicate tasks and unrealistic deadlines.</p>
<ol start="2">
<li><strong>Turning a Chat Message Into a Structured Task</strong></li>
</ol>
<p>Once the system understands what the user wants, it needs to convert that instruction into a format that the project management platform can work with.</p>
<p>A simplified workflow looks like this:</p>
<p><strong>Message → Intent Detection → Entity Extraction → Context Resolution → Validation → Task Creation</strong></p>
<p>Each stage handles a different part of the process.</p>
<p>Intent Detection</p>
<p>The first step is figuring out what the user is actually trying to do.</p>
<p>Are they creating a new task, assigning existing work, reporting a bug, asking for an update, or simply discussing something?</p>
<p>This matters because not every message should trigger an action.</p>
<p>For example:</p>
<p>"Did we finish the payment page?"</p>
<p>That's a question about existing work, not an instruction to create a new task.</p>
<p>The system needs to recognize that difference before doing anything.</p>
<p>Entity Extraction</p>
<p>Next, the system identifies the important details within the message.</p>
<p>These might include:</p>
<ol>
<li>Task names and descriptions.</li>
<li>Names of team members.</li>
<li>Project references.</li>
<li>Dates and deadlines.</li>
<li>Bug descriptions.</li>
<li>Priorities and other relevant details.</li>
</ol>
<p>The extracted information becomes the starting point for creating or updating a task.</p>
<p><strong>Context Resolution</strong></p>
<p>Some instructions only make sense when they're connected to earlier conversations or existing project information.</p>
<p>Consider this message:</p>
<p>"Assign it to the developer who handled the previous login issue."</p>
<p>The system cannot reliably identify the person from this sentence alone.</p>
<p>It needs access to relevant task history or project information to understand which developer the user is referring to.</p>
<p><strong>Validation</strong></p>
<p>Before making any changes, the system should check whether the extracted information is complete enough to act on.</p>
<p>If the project or assignee is unclear, asking the user for clarification is better than making an incorrect assumption.</p>
<p><strong>Task Creation</strong></p>
<p>Once the necessary details have been identified and validated, the system can create a new task or update an existing one.</p>
<p>Separating these stages makes the overall workflow easier to test, maintain, and improve.</p>
<ol start="3">
<li><strong>The Most Difficult Challenge: Understanding Context</strong></li>
</ol>
<p>Understanding a sentence doesn't necessarily mean understanding the situation behind it.</p>
<p>Consider these two instructions:</p>
<p>"Assign the testing task to Priya."</p>
<p>"Assign the testing task to Priya for the payment module before Thursday."</p>
<p>The second instruction provides additional information, but both may still leave important questions unanswered.</p>
<p>Which project does the task belong to? Does the testing task already exist? Is Priya assigned to that project? Does Thursday refer to this week?</p>
<p>These details matter because conversational instructions often depend on information that isn't included in the message itself.</p>
<p>A useful system needs access to relevant project data, including:</p>
<ol>
<li>Existing tasks and their descriptions.</li>
<li>Current assignees and team members.</li>
<li>Project deadlines.</li>
<li>Task statuses and dependencies.</li>
<li>Previous updates and relevant task history.</li>
</ol>
<p>It also needs to understand whether the user wants to create something new or modify an existing assignment.</p>
<p>Without that distinction, the same instruction could accidentally create duplicate tasks or update the wrong record.</p>
<p>In other words, the system needs to understand not only what someone is saying, but also how that instruction relates to the work already happening.</p>
<ol start="4">
<li><strong>Preventing Duplicate Tasks and Conflicting Updates</strong></li>
</ol>
<p>Duplicate task creation might seem like a small issue, but it can quickly create confusion in a busy project.</p>
<p>Imagine a manager sends:</p>
<p>"Create a task for the team to review the new dashboard."</p>
<p>A few minutes later, they follow up with:</p>
<p>"Also make sure someone reviews the dashboard before Friday."</p>
<p>Are these two separate assignments, or is the second message adding a deadline to the first?</p>
<p>A system that treats every instruction independently could create two tasks for the same piece of work.</p>
<p>To avoid this, it needs to consider information such as:</p>
<ol>
<li>Similarity between task descriptions.</li>
<li>Existing tasks within the same project.</li>
<li>Current task status.</li>
<li>Assigned team members.</li>
<li>Deadlines and previous instructions.</li>
<li>The context of the ongoing conversation.</li>
</ol>
<p>The same challenge appears when users change existing instructions.</p>
<p>Suppose a task originally has a Wednesday deadline, but a manager later says:</p>
<p>"Move the deadline to Friday."</p>
<p>The system needs to identify the correct task and update its existing deadline rather than creating another assignment.</p>
<p>This is why conversational project management requires more than extracting words from messages. It has to interact carefully with the existing state of a project.</p>
<ol start="5">
<li><strong>Task Creation Is Not the End of the Workflow</strong></li>
</ol>
<p>Creating a task is useful, but it only gets the work started.</p>
<p>Someone still needs to take ownership, update its progress, and follow through until completion.</p>
<p>A task can become overdue, get blocked by another assignment, or require additional work after testing.</p>
<p>Consider a simple sequence:</p>
<ol>
<li>A manager asks the assistant to create a bug-related task.</li>
<li>The task is created and assigned to a developer.</li>
<li>The developer begins working on the issue.</li>
<li>QA identifies another problem during testing.</li>
<li>The task remains open until the necessary changes are completed.</li>
</ol>
<p>Throughout this process, the system needs to maintain an accurate record of what's happening.</p>
<p>This also changes how people interact with the assistant.</p>
<p>Instead of only asking it to create tasks, users can ask questions such as:</p>
<ol>
<li>What tasks are currently assigned to me?</li>
<li>Which assignments are overdue?</li>
<li>What's still waiting to be completed?</li>
<li>Who is responsible for resolving this issue?</li>
</ol>
<p>The assistant becomes considerably more useful when it can retrieve information from existing project records rather than simply interpret new instructions.</p>
<p>The goal is to support the complete workflow, from the initial conversation to the final completion of the task.</p>
<ol start="6">
<li><strong>Why WhatsApp Is an Interesting Interface for Conversational Project Management</strong></li>
</ol>
<p>There's another practical challenge worth considering: where these interactions take place.</p>
<p>Teams already use messaging applications for everyday coordination.</p>
<p>A developer might receive a bug report in a group chat. A manager could share a deadline through a direct message, while a client might request a change during an ongoing conversation.</p>
<p>Asking everyone to move every small interaction into a separate project management application can introduce unnecessary friction.</p>
<p>This is one reason conversational access to project workflows is worth exploring.</p>
<p>With <a href="https://www.projtl.com/">ProjTL</a>, users can interact with Atlas, its AI assistant, through WhatsApp.</p>
<p>They can add tasks, assign work, and check pending or overdue assignments through a communication channel they're already familiar with.</p>
<p>The idea isn't to automatically convert every message into a task.</p>
<p>Not every conversation requires an action, and not every instruction contains enough information to create an assignment.</p>
<p>Instead, the aim is to make it easier to move from a conversation to a structured project action when one is actually needed.</p>
<p>WhatsApp provides the familiar communication interface, while ProjTL provides the project management context behind those interactions.</p>
<p>That distinction is important. Conversations can remain natural, while tasks, assignments, and deadlines stay organized and trackable.</p>
<ol start="7">
<li><strong>What Developers Should Consider When Building Conversational Workflows</strong></li>
</ol>
<p>Building a conversational project management system involves several decisions beyond choosing an AI model or connecting a messaging application.</p>
<p>The way the system handles instructions, missing information, and existing project data can determine how reliable it is.</p>
<p>Here are some important considerations.</p>
<ol>
<li><strong>Don't Treat Every Message as an Instruction</strong></li>
</ol>
<p>A message could be a question, a status update, a request, or an actual command.</p>
<p>The system needs to distinguish between these before attempting to create or modify project records.</p>
<ol start="2">
<li><strong>Separate Information Extraction From Execution</strong></li>
</ol>
<p>Identifying a possible task and actually creating it are two different operations.</p>
<p>The extracted details should be validated before the system makes changes to project data.</p>
<ol start="3">
<li><strong>Use Project Context Without Making Assumptions</strong></li>
</ol>
<p>Previous assignments, task history, and project information can help resolve incomplete instructions.</p>
<p>However, missing details shouldn't simply be invented to make an instruction appear complete.</p>
<ol start="4">
<li><strong>Make Ambiguous Instructions Clear</strong></li>
</ol>
<p>If someone says, "Assign it to the usual person," the assistant should ask for clarification when it cannot reliably identify who that means.</p>
<p>A short follow-up question is better than assigning work to the wrong person.</p>
<ol start="5">
<li><strong>Keep Task Information Consistent</strong></li>
</ol>
<p>Creating a task is only one part of the process.</p>
<p>Changes to assignments, deadlines, priorities, and statuses should be reflected accurately in the project records.</p>
<ol start="6">
<li><strong>Confirm What Has Actually Changed</strong></li>
</ol>
<p>Users should be able to see what the assistant created or updated.</p>
<p>Clear confirmations make the interaction easier to understand and help users identify mistakes before they affect the rest of the workflow.</p>
<p>These principles apply whether the conversational interface is built directly into a project management platform, connected to WhatsApp or used as an internal team assistant.</p>
<p><strong>Conclusion: The Real Challenge Is Connecting Conversations With Action</strong></p>
<p>Conversational AI in project management is often discussed in terms of how naturally people can interact with an assistant.</p>
<p>But understanding a message is only one part of the challenge.</p>
<p>The more important task is turning informal instructions into structured assignments, connecting them to the correct project information and making sure the resulting work remains trackable.</p>
<p>A single chat message might contain a bug report, a deadline, or a new responsibility. Converting that information into reliable project activity requires intent detection, context resolution, validation, and consistent task management.</p>
<p>That's the direction behind platforms such as ProjTL and its Atlas AI assistant.</p>
<p>Because the goal isn't simply to make project management feel more conversational.</p>
<p>It's to make sure that important work discussed in everyday conversations doesn't get lost before someone can actually act on it.</p>
]]></content:encoded></item><item><title><![CDATA[Why AI Project Management Needs More Than Just a Chat Interface]]></title><description><![CDATA[AI assistants have become pretty good at handling everyday questions. You can ask them to explain a technical concept, write a piece of code, summarize a…]]></description><link>https://projtl.hashnode.dev/why-ai-project-management-needs-more-than-just-a-chat-interface</link><guid isPermaLink="true">https://projtl.hashnode.dev/why-ai-project-management-needs-more-than-just-a-chat-interface</guid><dc:creator><![CDATA[ProjTL]]></dc:creator><pubDate>Tue, 10 Nov 2026 07:20:01 GMT</pubDate><content:encoded><![CDATA[<p>AI assistants have become pretty good at handling everyday questions.</p>
<p>You can ask them to explain a technical concept, write a piece of code, summarize a lengthy document, or help you come up with ideas. In most cases, you'll get a useful response within seconds.</p>
<p>But things become a little different when the questions relate to actual project work.</p>
<p><strong>For example:</strong></p>
<p>Which tasks are holding up this project?</p>
<p>Is anyone on the team taking on too much work?</p>
<p>Are any important deadlines at risk?</p>
<p>Which tasks are still waiting for review?</p>
<p>What should the team concentrate on next?</p>
<p>These aren't questions that can be answered with general knowledge alone.</p>
<p>To answer them properly, an AI assistant needs to understand what's happening within the project. It needs access to relevant information about tasks, deadlines, responsibilities, and progress.</p>
<p>And that's where a simple AI chat interface differs from an assistant that's actually designed to support project management.</p>
<ol>
<li><strong>Giving an Answer Isn't the Same as Understanding a Project</strong></li>
</ol>
<p>A general AI assistant can explain how sprint planning works, suggest ways to distribute responsibilities, or describe common project management challenges.</p>
<p>But ask it which developer is overloaded in your current sprint, and the answer becomes much harder.</p>
<p>Why?</p>
<p>Because it doesn't necessarily know anything about your team's actual workload.</p>
<p>Project management involves several connected elements:</p>
<p>Tasks and the people responsible for them.</p>
<p>Deadlines and expected delivery dates.</p>
<p>Dependencies between different activities.</p>
<p>Project progress and current status.</p>
<p>Team capacity and workload.</p>
<p>Risks, blockers, and unresolved issues.</p>
<p>These details rarely exist in isolation.</p>
<p>For instance, a task marked as incomplete isn't automatically a sign that something has gone wrong. It might be waiting for approval, depending on another assignment, or simply be scheduled for a later stage of the project.</p>
<p>Without that context, an AI assistant can only offer general suggestions.</p>
<p>To make AI genuinely useful in project management, it needs to understand the work behind the questions.</p>
<ol start="2">
<li><strong>Project Management Is About Getting Things Done, Not Just Getting Suggestions</strong></li>
</ol>
<p>Let's consider a straightforward situation.</p>
<p>A project manager asks an AI assistant to help assign a set of tasks.</p>
<p>A general-purpose chatbot might recommend distributing the work according to each person's skills and availability.</p>
<p>That's a reasonable suggestion. But the manager still has to go through the actual process of identifying the tasks, selecting owners, setting deadlines, and updating the project.</p>
<p>This is where the difference between advice and workflow support becomes important.</p>
<p>A project-focused AI assistant should help users move beyond discussing what needs to happen and support the actions involved in getting there.</p>
<p>Depending on its available capabilities, this could include:</p>
<p>Creating new tasks.</p>
<p>Assigning responsibilities.</p>
<p>Setting deadlines.</p>
<p>Checking task progress.</p>
<p>Identifying overdue work.</p>
<p>Supporting daily and weekly planning.</p>
<p>The intention isn't to let AI make every decision automatically.</p>
<p>It's to reduce the repetitive work involved in managing everyday project activities while leaving important decisions in the hands of the people responsible for them.</p>
<ol start="3">
<li><strong>Counting Tasks Doesn't Tell You Who Is Actually Busy</strong></li>
</ol>
<p>One of the easiest mistakes in workload management is assuming that the person with the most assigned tasks has the heaviest workload.</p>
<p>That's not necessarily true.</p>
<p>A developer handling three complex backend assignments, reviewing pull requests, and helping colleagues troubleshoot issues could be considerably busier than someone working on eight smaller tasks.</p>
<p>The number of assignments doesn't tell the whole story.</p>
<p>A proper workload assessment needs to consider things such as:</p>
<p>How complicated each assignment is.</p>
<p>How much time it is likely to require.</p>
<p>Whether other tasks depend on it.</p>
<p>What additional responsibilities the person has.</p>
<p>Whether deadlines are competing for their attention.</p>
<p>This becomes particularly important in software development teams.</p>
<p>When one developer is overloaded, the impact can extend beyond their own assignments. Code reviews might get delayed, QA may have to wait for fixes, and other developers could find themselves unable to move forward.</p>
<p>AI-supported workload checks can help teams examine how responsibilities are distributed and bring potential imbalances to their attention.</p>
<p>Rather than looking only at how many tasks are completed or pending, managers can get a better understanding of where work is accumulating.</p>
<ol start="4">
<li><strong>A Project Being 75% Complete Doesn't Necessarily Mean It's on Track</strong></li>
</ol>
<p>Completion percentages can be useful, but they don't always tell the full story.</p>
<p>Imagine opening a project dashboard and seeing that 75% of the work has been completed.</p>
<p>That sounds encouraging.</p>
<p>But what if the remaining tasks are the ones that need to be finished before the next major milestone? What if a critical approval is still pending or one developer is responsible for several unfinished dependencies?</p>
<p>Suddenly, that percentage doesn't seem quite as reassuring.</p>
<p>Understanding project health requires looking at more than completed assignments.</p>
<p>Teams also need to consider:</p>
<p>Whether important tasks are overdue.</p>
<p>If critical dependencies remain unresolved.</p>
<p>Whether team members have manageable workloads.</p>
<p>If any major issues are waiting for attention.</p>
<p>Whether the remaining work can realistically meet the deadline.</p>
<p>AI can help examine these different signals and highlight areas that may deserve closer attention.</p>
<p>Project outcome predictions can add another layer of insight when they're based on relevant project information.</p>
<p>However, predictions should always be treated as estimates rather than guarantees. Their reliability depends on the accuracy and completeness of the underlying data.</p>
<ol start="5">
<li><strong>Skills and Memory Help AI Become More Relevant to Everyday Work</strong></li>
</ol>
<p>Not every organization manages projects in the same way.</p>
<p>A software development team might have specific procedures for code reviews, bug prioritization, and release approvals. A marketing team might focus on campaign schedules, content deadlines, and client feedback.</p>
<p>The way people work can vary considerably from one organization to another.</p>
<p>This is why a generic response isn't always enough.</p>
<p>AI assistants become more useful when they can follow instructions and support recurring activities that reflect how a team operates.</p>
<p>This is where skills and memory come into play.</p>
<p>Skills provide structured ways to handle common activities, such as:</p>
<p>Breaking larger assignments into smaller tasks.</p>
<p>Planning daily and weekly work.</p>
<p>Deciding which responsibilities need attention first.</p>
<p>Turning meeting notes into action items.</p>
<p>Reviewing workload distribution.</p>
<p>Identifying potential project risks.</p>
<p>Preparing project status updates.</p>
<p>Team-specific instructions can guide an assistant towards the processes and priorities an organization follows.</p>
<p>Memory can also help retain useful context, reducing the need for users to explain the same preferences repeatedly.</p>
<p>Together, these capabilities can make interactions more relevant to the work people are actually doing.</p>
<ol start="6">
<li><strong>Even a Smart AI Assistant Needs an Easy Way to Access It</strong></li>
</ol>
<p>There's another factor that often gets overlooked: how people interact with the assistant.</p>
<p>An AI tool might have impressive capabilities, but if employees have to navigate through several screens just to ask a basic question, using it can become inconvenient.</p>
<p>Most teams already work across multiple applications. They switch between messaging platforms, project management software, document editors, and other workplace tools throughout the day.</p>
<p>Introducing another place to check doesn't automatically make things easier.</p>
<p>This is where familiar communication channels can make a difference.</p>
<p>WhatsApp, for example, is already part of everyday communication for many individuals and businesses.</p>
<p>Connecting project-related interactions to this platform gives employees another way to access information without having to navigate through the main application every time.</p>
<p>They can ask about assigned or overdue tasks, add new tasks, and assign work through WhatsApp when those capabilities are supported.</p>
<p>It's important to understand that WhatsApp isn't replacing the project management platform.</p>
<p>The platform provides the structure for organizing work, while WhatsApp acts as an additional access point for everyday interactions.</p>
<p>Both have different roles, and connecting them can make the overall experience more convenient.</p>
<ol start="7">
<li><strong>How ProjTL and Atlas Bring These Capabilities Together</strong></li>
</ol>
<p>These are some of the ideas behind ProjTL and its AI assistant, Atlas.</p>
<p><a href="https://www.projtl.com">ProjTL</a> provides the project management environment for organising tasks, deadlines and team collaboration. Atlas adds AI-supported capabilities that help users interact with and understand their project work.</p>
<p>Its available skills cover several everyday activities.</p>
<p>Planning and organization</p>
<p>Atlas can help users break down tasks, plan their day or week, and decide which responsibilities should receive attention first.</p>
<p>Meetings and follow-ups</p>
<p>It can help prepare meeting agendas and turn meeting notes into decisions and actionable items.</p>
<p>Tracking and reporting</p>
<p>Users can access skills for reviewing project activity, checking risks, preparing status updates, and understanding workload distribution.</p>
<p>Problem-solving and decision-making</p>
<p>Atlas also supports brainstorming, decision assistance, and retrospectives, helping teams think through different situations.</p>
<p>Writing assistance</p>
<p>It includes capabilities for drafting messages and documents.</p>
<p>Atlas also supports team-specific instructions and memory, helping the assistant work in line with relevant preferences and context.</p>
<p>Its WhatsApp integration gives users another way to interact with their work. They can ask about assigned and overdue tasks, add tasks, and assign work through a familiar messaging channel.</p>
<p>The idea is to bring AI closer to the activities teams already perform instead of limiting it to general-purpose conversations.</p>
<p><strong>Conclusion: AI Needs to Understand the Work, Not Just the Question</strong></p>
<p>Having a chat interface makes AI easier to interact with. But that alone doesn't make it suitable for managing complex projects.</p>
<p>Real project management involves changing priorities, connected tasks, deadlines, responsibilities, dependencies, and team capacity.</p>
<p>An AI assistant becomes far more useful when it can work with this information and support the activities that keep projects moving.</p>
<p>So perhaps the more important question isn't simply:</p>
<p>"Can AI answer my project management questions?"</p>
<p>It's:</p>
<p>"Can AI help me understand what's happening across my projects and make it easier to decide what needs to happen next?"</p>
<p>That's the difference between an AI tool that can talk about work and one that's designed to help teams manage it.</p>
]]></content:encoded></item><item><title><![CDATA[The New Workplace Habit: Asking AI What's Pending Instead of Checking Every App]]></title><description><![CDATA[Think about how you usually begin your workday. You open your team chat, check your emails, go through project updates and then log in to your task…]]></description><link>https://projtl.hashnode.dev/the-new-workplace-habit-asking-ai-what-s-pending-instead-of-checking-every-app</link><guid isPermaLink="true">https://projtl.hashnode.dev/the-new-workplace-habit-asking-ai-what-s-pending-instead-of-checking-every-app</guid><dc:creator><![CDATA[ProjTL]]></dc:creator><pubDate>Mon, 09 Nov 2026 08:55:29 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6af17fea53f71d7690938cf1/55b405d6-fd8b-4bc8-93bf-9a925c7c4dd4.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Think about how you usually begin your workday.</p>
<p>You open your team chat, check your emails, go through project updates and then log in to your task management platform. Somewhere between all those tabs, you try to figure out what needs your attention first.</p>
<p>It sounds like a normal morning routine, doesn't it?</p>
<p>But there's a problem. Even after checking everything, you might still miss an important update. A task could have been assigned the previous evening, a deadline might have changed, or someone could be waiting for your response.</p>
<p>Keeping track of work shouldn't feel like another responsibility.</p>
<p>And this is where AI is starting to change the way people interact with workplace tools.</p>
<h2>The challenge of finding information across multiple applications</h2>
<p>Most workplaces already have enough communication channels. Teams use messaging applications, emails, spreadsheets, meetings and project management software to keep things moving.</p>
<p>Each platform has its purpose, but information often ends up scattered across them.</p>
<p>Imagine wanting to know which tasks are still pending. You might need to open your project management tool, locate your assigned tasks, check their status and go through the deadlines.</p>
<p>It's not particularly difficult, but doing it repeatedly throughout the day takes time.</p>
<p>The bigger issue is that employees spend valuable time searching for information that should already be easy to access.</p>
<p>This becomes even more noticeable when teams are handling multiple projects simultaneously.</p>
<h2>Why conversational AI is changing everyday workflows</h2>
<p>Traditionally, accessing information from workplace software meant navigating through menus, dashboards and different sections.</p>
<p>That hasn't changed completely, and dashboards still serve an important purpose.</p>
<p>However, AI is introducing another way to interact with these systems.</p>
<p>Instead of manually searching for information, employees can ask questions in natural language.</p>
<p>For example:</p>
<ul>
<li>What tasks are assigned to me?</li>
<li>Which tasks are overdue?</li>
<li>What should I focus on today?</li>
</ul>
<p>Rather than going through multiple screens, a work-focused AI assistant can retrieve relevant information from the connected project data.</p>
<p>It's a small change in interaction, but it can make everyday work feel considerably simpler.</p>
<h2>WhatsApp adds another layer of convenience</h2>
<p>There's a reason messaging applications have become such an important part of modern workplaces.</p>
<p>People are already comfortable using them to share updates, ask questions and coordinate with colleagues.</p>
<p>WhatsApp, in particular, is widely used by individuals and businesses for everyday communication.</p>
<p>Bringing workplace information into a familiar messaging environment creates an opportunity to reduce the effort involved in accessing updates.</p>
<p>Instead of opening another application just to check your workload, you can use a conversational interface to ask what needs attention.</p>
<p>The objective isn't to move every business activity into WhatsApp. It's to make routine information easier to retrieve.</p>
<h2>An AI assistant needs more than just intelligence</h2>
<p>There's an important point that often gets overlooked when discussing AI at work.</p>
<p>A chatbot that can answer general questions isn't necessarily useful for managing actual projects.</p>
<p>To provide meaningful answers, a workplace assistant needs access to relevant project information. It also needs to understand how the team operates.</p>
<p>For instance, an assistant that can identify overdue tasks becomes more useful when it understands task ownership and the team's priorities.</p>
<p>This is where team-specific instructions can help guide its responses.</p>
<p>However, the quality of those responses still depends on the information available. Outdated deadlines, incomplete tasks and unclear ownership can affect the usefulness of any AI assistant.</p>
<p>Technology can simplify access to information, but teams still need to maintain that information properly.</p>
<h2>How ProjTL brings WhatsApp and AI together</h2>
<p>This shift towards conversational workplace tools is something ProjTL is addressing through its WhatsApp integration and Atlas AI assistant.</p>
<p>Rather than manually navigating through different sections of a project management platform, team members can ask Atlas about their assigned tasks and identify overdue work through WhatsApp.</p>
<p>Teams can also provide Atlas with specific instructions to help align its responses with their internal workflows and priorities.</p>
<p>For someone starting their workday, this offers a simpler way to get an overview of pending responsibilities.</p>
<p>The main project management platform remains important for organising tasks, reviewing progress and managing projects in detail. Atlas provides another way to access relevant information when a quick answer is all that's needed.</p>
<p>It's not about replacing the tools teams already depend on. It's about making them easier to work with.</p>
<h2>Are dashboards becoming less important?</h2>
<p>Not at all.</p>
<p>Project dashboards continue to be useful for planning, tracking progress, reviewing workloads and managing complex assignments.</p>
<p>They give managers and team members a broader understanding of what's happening across different projects.</p>
<p>Conversational AI serves a slightly different purpose.</p>
<p>It helps people retrieve specific information without having to navigate through the entire platform.</p>
<p>Think of dashboards as the place where you manage and review work, while an AI assistant helps you find the information you need through a simple conversation.</p>
<p>Both approaches can work together.</p>
<h2>A simpler way to begin the workday</h2>
<p>Workplace productivity isn't always about completing more tasks or introducing another application.</p>
<p>Sometimes, it's about removing the small obstacles that interrupt the working day.</p>
<p>Searching through messages, checking multiple dashboards and repeatedly following up on assignments can take attention away from the actual work.</p>
<p>Conversational AI offers a different approach. Instead of making employees search for every update, it allows them to ask questions and retrieve relevant information more naturally.</p>
<p>As workplace technology continues to evolve, the way we interact with project management tools may change just as much as the tools themselves.</p>
<p>Perhaps the next time you start your workday, you won't need to open five different applications to understand what's happening.</p>
<p>You might just need to ask one question:</p>
<p><strong>What's pending today?</strong></p>
]]></content:encoded></item></channel></rss>