WordPress AI Assessment Widget with n8n + Claude: Daily Ingestion + Assessment That Actually Works
Build a WordPress AI assessment widget with n8n + Claude. Daily ingestion from edX, Udemy and Adzuna, deduped as custom post types, with a scored widget.
Direct answer: Build a WordPress AI assessment widget with n8n + Claude by ingesting courses and jobs daily into WordPress custom post types, deduping them on a canonical key, and letting the widget call Claude through a server-side n8n workflow that returns validated, structured JSON. Never put API keys in the browser, never auto-publish AI output, and let code, not the model, calculate the final score.
A WordPress AI assessment widget is not a chatbot with a new label. A chatbot answers. An assessment widget measures, explains, and points to a next step a founder can defend.
Most tutorials build one half of the system. One shows n8n pulling RSS into WordPress. Another shows a quiz plugin generating questions from a PDF. Neither shows how a UK education platform keeps courses and jobs fresh every day, avoids duplicates, and gives a learner a scored assessment that links back to real listings. This guide builds both halves as one system.
What this build actually is
You have two jobs that look separate but share one data model.
First, daily content ingestion. Every morning, n8n fetches new and updated courses from edX and Udemy and new jobs from Adzuna, normalises them into one shape, removes duplicates, and creates WordPress drafts as custom post types. A human reviews and publishes.
Second, assessment. A learner opens a widget on a course, career or skill page, answers a short structured assessment, and gets a score, strengths, gaps, and a recommended next course or job from the ingested catalogue. The widget does not invent listings. It only recommends records that already exist in WordPress.
That separation is the whole design. Ingestion creates trusted records. Assessment reasons over those records. If you mix them, letting Claude invent a course in the assessment answer, you lose trust in one reply.
This is the kind of scoped AI automation services work that needs a measurable task, a data boundary and human review. Define those before you write a workflow.
Architecture at a glance
Keep three layers separate: sources, orchestration and WordPress.

Sources feed n8n. n8n writes drafts. WordPress stores the record. The widget reads only what exists.
| Layer | Job | What lives here |
|---|---|---|
| Sources | Provide raw records | Adzuna API, edX Discovery API, Udemy approved access |
| Orchestration | Fetch, normalise, dedupe, call Claude, retry | n8n workflows, queues, error logs |
| WordPress | Store, review, display | Custom post types, custom REST endpoint, widget |
The request flow for assessment is: widget → WordPress custom REST endpoint → n8n webhook → Claude Messages API → validation in code → WordPress → widget. The browser never sees an Anthropic key, an Adzuna key or a WordPress Application Password.
The ingestion flow is: n8n Schedule Trigger → fetch each source → normalise → dedupe → Claude enrich → WordPress REST API as draft → human review → publish.
Use n8n in queue mode once volume grows, so one slow Claude call does not block the whole run. Log every run: source, records fetched, records deduped, records created, failures and token use.
Daily ingestion: edX, Udemy and Adzuna
Start with access, not code
Adzuna has a documented REST API with an application ID and key. Its job search endpoint supports country-scoped queries, for example gb for the UK. Check the current Adzuna developer docs for parameters, limits and terms before you build.
edX and Udemy are different. Do not assume an open catalogue API. edX Discovery API access depends on your programme and credentials. Udemy catalogue access depends on an approved programme or agreement. Get written access first, confirm what fields you may store and display, how attribution must appear, and whether prices, ratings or descriptions may be republished. If a provider does not allow it, do not scrape around the restriction. That decision protects the platform more than any workflow.
Normalise to one canonical record
Each source uses different field names, levels and categories. Map them once into a single schema, and never let source field names leak into WordPress.
| Canonical field | Source examples to map | Rule |
|---|---|---|
source | adzuna, edx, udemy | Lowercase, fixed list |
source_id | Adzuna job ID, edX course key, Udemy course ID | Required, unique per source |
canonical_url | Provider listing URL | Required, used for dedupe |
title | Job title or course title | Trim, no provider boilerplate |
summary | Description, excerpt | Plain text, capped length |
skills | Tags, subjects, categories | Normalised list, lowercase |
level | Beginner, intermediate, advanced | Map to fixed list, else unspecified |
location | Job location, or online for courses | UK regions for jobs, online for courses |
salary_or_price | Salary range or course price | Store currency and range, never mix |
published_at / updated_at | Source timestamps | Used for freshness and re-checks |
source_hash | Hash of title, provider and URL | Used to detect changes |
Claude helps here, but only for enrichment. Use it to clean a title, extract skills from a description, and map a free-text level to your fixed list. Do not let it invent a salary, price or location. If the source did not provide it, store not provided.
Dedupe before WordPress, not after
Duplicates are the fastest way to lose credibility. The same course can appear under two titles. The same job can be reposted with a new ID.

Dedupe in order, and alert when a source returns nothing. Silence is a failure mode.
Use three checks in order:
- Exact key:
source + source_id. If it exists, update it, do not create it. - Canonical URL: if the URL already exists under another ID, treat it as the same record and merge.
- Fuzzy title and provider: if title, provider and location match closely, send it to a review queue. Do not auto-merge fuzzy matches.
In WordPress, also check the slug before writing. Query GET /wp-json/wp/v2/course?slug=... and GET /wp-json/wp/v2/job?slug=... before a POST. A re-run must be safe. That slug guard is the idempotency key for the whole ingestion run.
Register custom post types with show_in_rest set to true so they appear in the REST API. The WordPress REST API Handbook explains how the API exposes posts, pages, taxonomies and custom types under /wp/v2/ when they are registered correctly.
Publish as draft, always
Every ingested record lands as status: draft. A human checks title, skills, level, price or salary, attribution, and whether the listing is still live. Only then does it publish.
This is not bureaucracy. It is how you stop a stale job, a wrong price or a mislabelled level from reaching a learner who is making a career decision. It also keeps AI-assisted content reviewable, which matters for quality and trust.
Add a daily reconciliation check: records fetched vs records created vs records failed vs records skipped as duplicates. If one source returns zero records, alert a human. Silence is a failure mode.
The assessment widget: scored, not chatty
What the widget must return
A WordPress AI assessment widget should return the same shape every time, so the front end can render it without parsing free text.
{
"score": 68,
"level": "intermediate",
"strengths": ["Python basics", "Data cleaning"],
"gaps": ["SQL joins", "A/B testing"],
"evidence": ["Q3: chose correct join type", "Q5: missed control vs variant"],
"next_course_id": 412,
"next_job_id": 388,
"confidence": "medium",
"review_needed": false
} Claude generates the reasoning and the evidence notes. Code calculates the score from the answer key and rubric. That split is deliberate. If the model calculates the score, the score can drift. If code calculates it, the same answers always give the same score.
Use the Claude Messages API with a strict system prompt: return only JSON, no markdown fences, no extra fields, no invented course or job IDs. The API also supports JSON-schema output formatting, which can reduce parsing errors, but keep your own validation either way.
Then validate in code. Reject any response that fails JSON parsing, references a course or job ID not in WordPress, or returns a score outside the rubric range. A rejected assessment is better than a confident wrong one. Log it, show the learner a clear error, and let them retry.
Design the assessment, not just the prompt

The model explains, the code scores, and every recommendation points to a real WordPress record.
Keep assessments short and purposeful. For a skills check, six to ten questions is enough. Mix formats: multiple choice for knowledge, a short scenario for application, and one self-rating for confidence. Each question maps to one skill in your canonical skills list.
An illustrative example: a learner on a "Data Analyst" career page takes a seven-question check. They score well on spreadsheets and data cleaning, but miss SQL joins and experiment design. The widget shows a 68 score, lists those two gaps, and recommends one ingested SQL course and one junior analyst job from Adzuna that lists SQL as required. The recommendation is a link to a real WordPress record, not a generated suggestion.
That link-back is what makes the widget useful. Without it, assessment is entertainment. With it, assessment becomes a path.
Keep learner data minimal and UK-aware
Only collect what the assessment needs. For an anonymous check, collect answers only. If you store email, score and history, that is personal data.
ICO guidance distinguishes a controller, who decides why and how personal data is used, from a processor, who acts only on the controller's instructions. A UK education platform is typically the controller for learner assessment data. If n8n, a model provider or a host processes that data for you, you need a written processor contract and a clear data boundary. This is not legal advice. For retention, consent and processor terms, consult a qualified professional and check current ICO guidance before launch.
Practical rules: do not send learner emails or names to Claude unless the assessment needs them, and it usually does not. Send an anonymous session ID and answers. Store scores in WordPress with access control. Set a retention period. Give learners a way to delete their history. Log who accessed assessment records.
Build it in order

Prove one loop before adding the next source. A second run must update records, not duplicate them.
Build in this order. Test each step before adding the next.
- Register the data model. Create
courseandjobcustom post types, plus askilltaxonomy. Setshow_in_restto true. Create one test record by hand. - Build one ingestion workflow. Start with Adzuna only. Fetch, normalise, dedupe, create one draft. Verify the slug guard and re-run safety.
- Add edX, then Udemy. Add one source at a time. Each source gets its own field map and review queue.
- Add Claude enrichment. Add cleaning and skill extraction only after raw ingestion is stable. Keep Claude out of the critical path for dedupe.
- Build the widget front end. Use a shortcode or block, lightweight JavaScript, accessible markup, and loading and error states. No keys in JavaScript.
- Build the assessment endpoint. WordPress custom REST endpoint → n8n webhook → Claude → validation → response. Test with bad JSON, unknown IDs and empty answers.
- Add review and alerts. Draft queue, duplicate queue, failure alerts, daily reconciliation. Assign an owner for failures.
- Test with real learners. Run 20 to 30 representative assessments, check scores against a manual rubric, and fix prompt and validation gaps before launch.
For API integration consulting, the same discipline applies: agree the source of truth for each record, map fields, define retry and duplicate rules, and make failures visible. Ingestion is integration, not just automation.
Plugin vs n8n + custom vs full custom
| Option | When it fits | Trade-off |
|---|---|---|
| Quiz or form plugin | Simple quizzes, no external catalogue, no daily ingestion | Fast, but no Claude reasoning and no course or job matching |
| n8n + custom widget (this guide) | Daily ingestion, structured assessment and WordPress | Best balance for most education platforms |
| Full custom app | High-volume assessment, proctoring, complex learner accounts, LMS depth | Most control, highest cost and maintenance |
Choose the option your team can maintain after launch. A plugin you outgrow in three months is not cheaper than a scoped custom widget. A full custom app you cannot maintain is not stronger than a well-built n8n flow.
If the site itself needs rebuilding, read the WordPress vs custom website scorecard first. The widget decision and the platform decision are separate.
A note on evidence
No first-hand JUHENZA build, test run or client result is claimed here. The workflow, validation and review rules are drawn from the WordPress, Claude and Adzuna documentation linked below, plus normal integration practice. The score and widget mock use invented demo data.
Provider access is the part most guides skip. Before you promise this build, ask for written confirmation of edX and Udemy access, the fields each provider allows you to store and display, and the attribution rules. A working demo on scraped data is not a build you can launch.
Common mistakes, limitations and when to involve a specialist
- Auto-publishing AI output. Every ingested record and every assessment template needs human review before it affects a learner.
- Letting Claude invent IDs, prices or salaries. Validate every ID against WordPress. Store
not providedrather than guessing. - Deduping on title only. Titles change. Use the source key, canonical URL and a review queue.
- Putting keys in the browser. Keys belong server-side in n8n and WordPress, never in JavaScript.
- No failure alerts. If a source fails overnight, the site goes stale silently. Alert on zero-record runs and on validation failures.
- Ignoring provider terms. If a provider does not allow republication, do not ingest it.
- Treating assessment as high-stakes testing. This widget is a guidance tool, not an exam, certification or hiring decision. Say so in the widget.
This build is weaker for proctored exams, adaptive testing with item banks, or deep LMS reporting. Those need a learning platform, not a widget.
Involve a specialist if you need webhook security review, high-volume assessment, learner data handling under UK GDPR, multi-source licensing, or integration with a CRM or LMS. See the related n8n automation guide for how the same failure-handling discipline works in a payments flow. For site builds, WordPress development services cover portals, content structure and launch checks.
FAQ
How does the WordPress AI assessment widget work?
The widget collects structured answers, sends them to a server-side n8n workflow, and Claude returns structured JSON with strengths, gaps and evidence. Code calculates the final score from the rubric, validates every recommended course or job ID against WordPress, and the widget renders the result. No API keys are exposed in the browser.
How does daily ingestion avoid duplicates?
It dedupes in three steps: exact source key, canonical URL, and a fuzzy-match review queue for close titles. It also checks the WordPress slug before creating a record. A re-run therefore updates existing records instead of creating duplicates.
Can I use edX, Udemy and Adzuna together?
Yes, if you have approved access for each. Adzuna has a documented API. edX and Udemy access depends on programme terms and credentials. Confirm what you may store, display and attribute before building, and do not scrape if a provider does not allow it.
Does Claude decide the assessment score?
No. Claude provides reasoning and evidence notes. Code calculates the score from the answer key and rubric, so the same answers always give the same score. Any response with an unknown course or job ID is rejected.
How do I keep learner data safe under UK GDPR?
Collect only what you need, do not send names or emails to the model unless required, store scores with access control, set a retention period, and have written processor terms with any service that processes learner data for you. This is not legal advice; consult a qualified professional for your specific setup.
Is a quiz plugin enough?
For a simple quiz, yes. For daily ingestion from courses and jobs plus a scored assessment that links to live listings, a plugin alone is not enough. That is when n8n plus a custom widget is the right fit.
What happens if one source fails overnight?
The workflow logs the failure, sends an alert, and keeps the other sources running. The site shows the last good catalogue, not an empty page. The team fixes the failed source and re-runs only that source.
Where this fits and what to do next
This post sits in AI and intelligent automation, under n8n and AI workflows. It builds on the n8n automation guide and the WordPress vs custom website scorecard, and leads to the AI automation and integration service pages.
A WordPress AI assessment widget that actually works is not a clever prompt. It is a clean data model, a deduped daily feed, a validated assessment response, and a human review step that never gets skipped.
If you are building this for a UK education or careers platform, start with one source, one assessment and one review queue. Prove the loop, then add sources.
Discuss your project and send your sources, your assessment goal and your WordPress setup. We will scope the ingestion, widget and review workflow with acceptance checks before build.