SkillHack

How to become an AI Integration Engineer

Step by step and free: 12 phases, 85 topics and 286 graded practice questions.

Practise this roadmap free

What is an AI Integration Engineer?

An AI integration engineer connects language models to the systems a business already runs, such as CRM, ERP, ticketing, document stores and data warehouses. They design tool calls and MCP servers over existing APIs, handle OAuth and acting on a user's behalf, map data between old and new formats, build event-driven and async workflows, and keep the whole thing secure, observable and ready for the next model migration.

Who this roadmap is for

Backend and integration engineers who already ship APIs, connect SaaS platforms or maintain enterprise middleware. Solutions and platform engineers fit too. You should be comfortable with HTTP, JSON, authentication and one server-side language. Training models and designing chat interfaces are out of scope; this is about plumbing AI into real systems.

What you will be able to do

You will be able to call model provider APIs with streaming and structured output, turn an existing API into safe tools and an MCP server, implement OAuth delegated access, build idempotent webhook and queue workflows, integrate legacy SOAP and batch systems, test around a nondeterministic model, and switch models or providers without breaking production.

The AI Integration Engineer roadmap

AI Integration Engineer

  1. Phase 1 Integration foundations

  2. Phase 2 Identity, OAuth and delegated access

  3. Phase 3 Model provider APIs

  4. Phase 4 Tool calling over business systems

  5. Phase 5 Building MCP servers over enterprise systems

  6. Phase 6 Connectors to business platforms

  7. Phase 7 Events, workflows and async jobs

  8. Phase 8 Data mapping and legacy systems

  9. Phase 9 Testing integrations

  10. Phase 10 Running integrations in production

  11. Phase 11 Data boundaries and security

  12. Phase 12 Migrating models and providers

All topics, in order

Mark each topic Learning, Done or Skip, and sign in to save your place to your account. Done is your own word, not passing: a topic is passed when you score 50 or more on its questions. This order is the study plan.

  1. Phase 1 · Integration foundations

    1. What an AI integration engineer does

      An AI integration engineer connects model capabilities to the software a business already runs: the CRM, the ticket queue, the ledger, the document store. Most of the work is plumbing, so identity, contracts, retries, data mapping and audit matter more than prompt wording. Call an integration done when it survives the other system's outage, that system's owner has signed off, and anyone can trace a single call from end to end.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    2. The systems a business already runs

      A system of record is the authoritative source for a kind of data, such as the ERP for invoices or the HR system for employees; systems of engagement, like chat or a help desk, are where people work with that data. Each has an owner, a change window and limits you will be held to. Before you build, write an inventory: each system, its owner, the data it holds, how you reach it and who must approve any write to it.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. Choosing an integration pattern

      Four patterns cover most integrations: a synchronous request when a person waits for the answer, an asynchronous job when the work is slow, an event when other systems must react to a change, and a scheduled batch for large volumes with no urgency. Model calls are slow and variable, so work that can take more than a few seconds rarely belongs inside a synchronous user request. Choose by who waits, how much arrives and how fresh the result must be.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. HTTP for integrators

      HTTP defines GET, HEAD, PUT and DELETE as idempotent, so repeating one leaves the same state, while POST is not, which is why a retried POST can create a second record. Status codes tell you what to do next: 429 and most 5xx mean wait and perhaps retry, while other 4xx mean the request itself is wrong and retrying will not help. Always set a timeout, send and check Content-Type, and honour Retry-After when a server sends it.

      Reading

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    5. API contracts: OpenAPI and JSON Schema

      An OpenAPI document describes an HTTP API in a machine-readable file: paths, operations, parameters, authentication and responses, with request and response bodies written as JSON Schema. Treat it as the contract both sides build against: generate typed clients and mock servers from it, validate real traffic against it, and derive tool definitions from it rather than retyping them. When the document and the live API disagree, tell the owner before you code around it.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. APIs and SDKs

      An API is the contract; an SDK is a maintained client over it that adds types, authentication, retries, pagination helpers and stream parsing. Use the official SDK for the common path and drop to raw HTTP only for gaps, such as an endpoint the SDK has not shipped yet. Know what the SDK does on your behalf: a client that silently retries a write, or a major version that changes a default, alters behaviour without a line of your code changing.

      Reading

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    7. Credentials and rate limits: the basics

      Keep keys and secrets in a secrets manager, never in source control or a container image, and rotate them on a schedule and whenever someone with access leaves. Where the platform offers it, prefer workload identity, which hands out short-lived credentials, over static keys. Providers cap requests and tokens per minute and answer 429 when you exceed the cap, so throttle on your side to stay under the shared quota and back off, honouring Retry-After, when you hit it.

      Reading

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    8. Error handling and retries

      Split failures into transient ones (timeouts, 429, 5xx, a dropped connection) and deterministic ones (a validation error, a missing permission, a malformed request), and retry only the first kind. Use capped exponential backoff with jitter so many clients do not hammer a recovering service in step, and bound the total attempts. Never blindly retry a write: without an idempotency key, a request that timed out may already have succeeded.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions

    Chapter 1 lab

    Write the instruction for a coding agent that connects a help desk to a model API

    A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.

    Start the lab
  2. Phase 2 · Identity, OAuth and delegated access

    1. OAuth roles and the authorization code flow

      OAuth has four roles: the resource owner (usually a user), the client (your integration), the authorization server that issues tokens, and the resource server (the API) that accepts them. In the authorization code flow the user signs in and consents, the client receives a short-lived code and swaps it for tokens, and PKCE proves the swap comes from the client that started it. The OAuth 2.1 draft requires PKCE and drops the implicit and password grants, so treat code plus PKCE as your default.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    2. Client credentials for machine-to-machine calls

      When no user is present, such as in a nightly sync, the client credentials grant lets your service get a token as itself. Where the authorization server allows it, authenticate with a JWT signed by a private key or with mutual TLS instead of a shared secret, because a secret can be copied and replayed. Request only the scopes the job needs, and remember that every action is attributed to the service, not to any person.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. Access tokens, refresh tokens and validation

      An access token is a short-lived bearer credential: whoever holds it can use it, so it travels only over TLS and never into logs. When it is a JWT, the resource server checks the signature against the issuer's published keys, then the issuer, the audience (this API), the expiry and the scopes. Refresh tokens live longer and fetch new access tokens; rotating them on every use means a stolen copy is caught when both copies are presented.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. Service accounts and workload identity

      A service account is a non-human identity for your code, with its own narrow permissions. Long-lived keys for it leak into files, images and laptops, so prefer the platform's workload identity: a managed identity in Azure, an IAM role in AWS, an attached service account in Google Cloud. To cross platforms, use federation: a CI job or another cloud presents its own signed OIDC token and swaps it for short-lived credentials, with no stored key at all.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    5. Single sign-on with SAML and OpenID Connect

      Single sign-on lets the company's identity provider authenticate staff once for many applications, using SAML assertions or OpenID Connect ID tokens. An ID token tells your application who signed in; it is not an access token, so never send it to an API as one. Your integration inherits the user's identity and group claims, which you map to permissions, and a duty: when the identity provider disables someone, their sessions and tokens in your integration must end too.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. Acting on behalf of a user

      When an AI feature reads a CRM or a mailbox for someone, it should use that person's permissions, not a broad service account that sees everything. Delegated flows do this: your backend exchanges the token the user signed in with for one the downstream API accepts, still bound to that user, through OAuth Token Exchange (RFC 8693) or a vendor flow such as Microsoft Entra's on-behalf-of. The system of record then applies its own access rules, so the model never fetches what the user could not open.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    7. Storing and refreshing users' connector tokens

      Connecting a user's third-party account leaves you holding their refresh token, which deserves the care of a password. Encrypt it at rest with a key held in a key management service, store it against both the user and the tenant, and refresh access tokens only on the server. Plan the unhappy paths: a failed refresh after revocation or a password change means asking the user to reconnect, and offboarding means revoking tokens at the provider, not only deleting your copy.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
  3. Phase 3 · Model provider APIs

    1. Calling a model API: messages and parameters

      A chat model API is stateless: each request carries the system instructions, the full list of user and assistant turns, the model name and a maximum output token count, so your code owns the history. Read the stop reason on every response: reaching the token limit means a truncated answer, and a tool-use stop means the model is waiting for your result. Keep roles separate rather than flattening everything into one prompt, and budget tokens for input and output alike.

      Reading

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    2. Stateless and stateful provider APIs

      Some provider APIs make you resend the whole conversation on every call; others can keep it on their servers, so you send only the new turn and an identifier, as OpenAI's Responses API does with stored responses and conversations. Server-held state saves bandwidth but ties your data, retention and migration path to that provider. Several providers also offer OpenAI-compatible endpoints, which ease switching but usually expose only part of each model's features.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. Reaching models through a cloud platform

      The same model is often sold both by its maker and through a cloud platform, for example Claude on Amazon Bedrock, Google Cloud Vertex AI and Microsoft Foundry. The cloud route brings its IAM instead of an API key, its quotas and billing, and its regions, which can ease procurement and data residency. The price is drift: features and models can arrive later, and request shapes and model ids differ, so check every feature on the route you actually call.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. Streaming responses

      Streaming sends the response as server-sent events, a series of small deltas, so users see text at once and time to first token becomes the latency they feel. Your client must assemble the deltas, including partial tool-call arguments, keep the full text for logging, and pass a user's cancel on by closing the connection. A stream that ends before its final stop event is incomplete: mark it failed or retry, and never store it as a finished answer.

      Reading

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    5. Structured output and parsing

      When another system consumes the output, have the provider constrain generation to a JSON Schema, through structured outputs or a strict tool definition, instead of asking for JSON in the prompt; as of November 2026 OpenAI, Anthropic and Google all offer this. Validate anyway: a schema guarantees shape, not truth, and a refusal or a cut-off reply may not match it. When a value breaks a business rule, reject it for retry or review rather than quietly repairing it.

      Reading

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    6. Files, documents and images through the API

      You can send a document or image inline in the request, usually base64 encoded, or upload it once to a provider's files API and refer to it by id across many calls. Each route has size, page and format limits, and the provider converts the file before the model sees it: a PDF may arrive as extracted text plus page images, so scans, handwriting and complex tables can lose detail. Check the limits per provider and test with your messiest real documents.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    7. Batch APIs for back-office volume

      Batch APIs accept many requests at once, process them asynchronously within a window of up to 24 hours, and charge less: Anthropic and OpenAI both list half the normal price as of November 2026. They suit back-office volume, like classifying a day of tickets or reading invoices overnight, not anything a person waits for. Give every request your own custom id, expect some to fail or expire while the rest succeed, and resubmit only those, matching results by id, never by order.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions

    Chapter 3 lab

    Write the extraction prompt for a schema two consumers depend on

    A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.

    Start the lab
  4. Phase 4 · Tool calling over business systems

    1. Tool and function calling

      Tool calling is a round trip: you send tool definitions (a name, a description and a JSON Schema for the inputs), the model replies with a call and its arguments, your code runs it, and you return the result so the model can continue. The model never executes anything itself; your code does, under your credentials and your checks. Return errors as results the model can act on, such as no customer with that id, try searching by email, so it corrects the call instead of guessing.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    2. Tool granularity and design

      Give each tool one clear intent, a name that says what it does and a description that says when to use it and what it returns. A catch-all tool driven by an action string makes the model guess, while dozens of near-duplicates, one per field combination, crowd the context and blur the choice. Aim for the set a careful new colleague would want: a few tools, each matching a real task, with typed parameters and an example in the description.

      Test yourself on this topic

      5 graded questions · scored out of 100 with feedback · free

      Start the 5 questions
    3. Turning an existing API into tools

      Generating one tool per endpoint from an OpenAPI file looks efficient but usually fails: hundreds of tools fill the context, endpoint names describe the backend rather than the task, and a simple request needs many chained calls. Start from what users actually ask for and design task-shaped tools, such as one that finds a customer and returns their open orders, which call several endpoints inside your code. Use the contract for types and validation, not as the tool list.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    4. Validating the arguments a model chose

      Treat every argument the model chooses as untrusted input, like a form field from the internet. Check types, ranges and formats on your server, and check that the user behind the request may touch the record id the model supplied, which no generation-time schema can do. When the model gives a name instead of an id, resolve it in your code, and if several records match, ask the user which one rather than picking.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    5. Shaping tool results

      A tool result goes straight into the model's context, so return what the next decision needs, not the raw record. Pick and rename fields to plain meanings, turn codes into labels, page or summarise long lists and say how many more exist, and cap the size of any single result. Large dumps cost tokens, crowd out earlier instructions and bury the one field that matters, and they can carry data the user should never see.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. Write tools: confirmation, dry runs and approval

      Keep read tools and write tools separate: a wrong read wastes a turn, but a wrong write changes a customer's record. Have a write tool first return a preview of exactly what will change, and commit only after a person or a policy confirms; set thresholds, such as refunds above a set amount, that always need a human. Give every write an idempotency key and an audit entry, and know how to undo it before you ship it.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions

    Chapter 4 lab

    Write the tool-use instruction for a billing support assistant

    A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.

    Start the lab
  5. Phase 5 · Building MCP servers over enterprise systems

    1. Model Context Protocol (MCP)

      MCP is an open protocol that lets any compatible AI application (the client) discover and call what a server exposes, so you build a connector to a business system once rather than once per app. Up to the 2025-11-25 revision, a client opened each connection with an initialize handshake that agreed the version and capabilities. As of November 2026 the current revision, 2026-07-28, drops it: every request carries its version and client capabilities, and servers answer server/discover.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    2. Tools, resources and prompts: picking the primitive

      An MCP server offers three kinds of thing. Tools are actions the model decides to call, resources are context the host application chooses to fetch and show, and prompts are templates a user picks on purpose. Decide by who should be in control: anything that changes a record or needs the model's judgement is a tool, read-only reference data the app can attach is a resource, and a repeatable workflow a person starts is a prompt.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. MCP transports: stdio and Streamable HTTP

      MCP defines two standard transports. With stdio the client launches your server as a local subprocess, so it runs on that user's machine with their credentials and serves only them. Streamable HTTP is a hosted endpoint that every message is POSTed to, which brings OAuth, Origin checks and load balancing with it. The older HTTP+SSE transport is formally Deprecated as of November 2026, so build new remote servers on Streamable HTTP.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. Stateless MCP servers

      As of November 2026 the current MCP revision, 2026-07-28, has no sessions: no handshake and no Mcp-Session-Id, so any server instance can answer any request behind a plain load balancer. Each request brings its own version and capabilities in _meta. State you need across calls becomes a handle your server mints, such as a basket ID, which the model passes back and you check against the caller every time. When you need more from the user, return an input_required result and the client retries with the answer.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    5. Authorising a remote MCP server

      A remote MCP server is an OAuth resource server, not an identity system. It publishes Protected Resource Metadata (RFC 9728) so clients can find its authorization server, and it accepts only tokens issued for its own URI, which clients request with the resource parameter (RFC 8707). As of November 2026 the spec prefers Client ID Metadata Documents for registering clients, keeps pre-registration, and lists Dynamic Client Registration as Deprecated.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    6. Scopes and step-up authorisation

      Advertise a small set of scopes that covers basic use, and ask for more only when an operation needs them. When a token lacks a scope, answer 403 with an insufficient_scope challenge that names every scope the operation needs in one go, not one at a time. The client then reauthorises with the union of its old and new scopes, so a user grants write access the first time they try to write rather than at sign-in.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    7. Reaching downstream systems as the user

      Your MCP server must never forward the token it received to the CRM or ticketing API behind it: that token was issued for your server, and passing it on (token passthrough) is forbidden by the spec. Exchange it for a token the downstream API accepts, through OAuth token exchange (RFC 8693) or your identity provider's on-behalf-of flow, so the call runs as that user. A shared admin credential turns your server into a confused deputy that reads what the user could not.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    8. Enterprise-managed access to MCP servers

      In a company, IT rather than each employee should decide which AI clients may reach which MCP servers. The Enterprise-Managed Authorization extension, listed as Stable for the 2026-07-28 revision as of November 2026, lets the client trade the user's single sign-on for an identity assertion grant (ID-JAG, still an IETF draft); the server's authorization server swaps that for an access token once the identity provider has checked policy. Gateways and allow-lists add a second gate.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    9. Wrapping an enterprise system as an MCP server

      Wrapping a CRM or ticketing system starts with the tasks people ask for, not its endpoint list: find a customer, summarise open cases, draft a reply, each with typed arguments. Run every call as the signed-in user, enforce the system's own permissions and rate limits behind the tool, and log who called what. Treat the tool list as a public API: version it, and change names or arguments with the notice you would give for any other breaking change.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
  6. Phase 6 · Connectors to business platforms

    1. CRM platforms

      A CRM holds the customer record, and every company has bent it with custom objects and fields, so read its metadata before you assume a field exists. Salesforce-style systems use their own query language and an API allowance shared by every integration in the org, while HubSpot-style ones cap requests per app and per time window. Build and test in a sandbox, and budget your calls, because your AI feature can starve the sales team's other tools.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    2. ERP and finance systems

      An ERP holds the ledger, and the ledger has rules: entries post to an open period, balance, pass approval and are corrected by reversing, never by editing. That is why an AI step rarely writes to it directly. Have the model propose a draft journal, a coded invoice or a matched payment, let the ERP's own validation and an accountable person approve it, and keep the model's reasoning beside the document for the auditors.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. Ticketing and ITSM systems

      Help desks and ITSM tools treat each ticket as a record with status, assignee, priority and an SLA clock, and every comment you add may email the customer. Write AI drafts as internal notes, or behind an agent's approval, rather than as public replies. Check how status changes start or pause SLA timers, and make automated updates idempotent, because a retried webhook that posts the same reply twice becomes a customer complaint.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. Document stores and intranets

      Shared drives, wikis and document libraries hold most of what a business knows, under permissions that change every day. Sync from the platform's change or delta feed rather than rescanning, store each document's access list with its content, and check it again at query time. Convert files carefully: tables, headings and comments in Office, PDF and wiki formats are easy to lose, and an answer built from a mangled table is confidently wrong.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    5. Email, chat and calendar platforms

      Mail, chat and calendar APIs reach into everyone's working day, so they are guarded hardest. You register an app, choose between acting as the signed-in user (delegated) or as the app across the whole tenant, and tenant-wide access usually needs an administrator's consent. Use event subscriptions instead of polling, renew them before they expire, and request the narrowest permission that works, because read access to every mailbox is a headline risk.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. Data warehouses and operational databases

      Point AI reads at a governed view, a warehouse table or a read replica, never at the production database that takes orders. Use a dedicated service user with read-only grants on just those views, set statement timeouts and result limits, and watch query cost, because a model writing SQL can scan a whole table or hold locks. Row and column policies in the warehouse are how you keep each answer inside what the requester may see.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    7. Pagination, bulk APIs and incremental sync

      Large systems hand data back in pages, and how you walk them decides whether you miss records. Prefer cursor or token pagination to offsets, which skip or repeat rows when data changes mid-walk. For the first load use a bulk export job, then keep up with delta tokens or an updated-since watermark, overlapping slightly and deduplicating. Deletes rarely show in a changed-since query, so use the platform's deleted-records feed or reconcile counts on a schedule.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    8. iPaaS and workflow tools

      Integration platforms and workflow tools connect common SaaS apps in hours and now ship AI steps, which suits simple, low-volume flows that operations people should own. Build your own when you need custom identity, exactly-once side effects, heavy volume, testing in CI or code review. Before choosing one, check where credentials and data live, how flows are versioned and exported, and the price per task once volume grows.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
  7. Phase 7 · Events, workflows and async jobs

    1. Webhooks: receiving, verifying and acknowledging

      A webhook is another system calling you, so verify it before trusting it: check the signature (often an HMAC over the raw body, an ID and a timestamp) and reject stale timestamps to stop replays. Acknowledge with a 2xx within seconds and do the real work, AI step included, from a queue. Senders retry, so expect the same event more than once and use its event ID to skip duplicates, as the Standard Webhooks spec recommends.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    2. Events and change data capture

      An event says something happened, such as an invoice being paid, in an envelope with an ID, type, source and time; CloudEvents is a common standard for that envelope. Change data capture reads a database's transaction log and turns each insert, update and delete into an event without touching the application. That lets an AI step react to changes in a system you cannot modify, but publish business events where you can, since raw table changes leak internal schema.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. Async and queues

      For slow or bursty work such as summarising a long document, accept the request, return 202 with a job ID, and let workers pull from a queue at a rate your model quota can bear. Set the visibility timeout longer than the slowest job, or a second worker picks it up while the first is still running. After a few failed attempts, move the message to a dead letter queue and alert, rather than retrying it forever.

      Reading

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    4. Multi-step workflows

      An AI integration that classifies, looks up, drafts and writes back is a workflow, and each step should save its result before the next one starts. Then a failure in step four resumes at step four instead of paying for the model calls again or repeating a write. Steps that changed another system need a compensating action, such as cancelling a created order, because a workflow across systems cannot roll back like a database transaction.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    5. Idempotency and retries

      An idempotent operation gives the same outcome however many times it runs, which is what makes retrying a timed-out write safe. Derive the idempotency key from the business action, such as the refund request's ID, send it on the first attempt and every retry, and keep it for longer than your retries can last. A fresh key per attempt, or a pause before retrying, deduplicates nothing.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    6. Exactly-once effects: outbox and inbox

      A network cannot promise that a message arrives exactly once, so aim for exactly-once effects instead. A transactional outbox writes the business change and the event to send in one database transaction, and a relay publishes it, so you never save without sending or send without saving. On the receiving side, an inbox table records processed message IDs in the same transaction as the work, so a redelivered message is recognised and skipped.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    7. Ordering and concurrent updates

      Events and webhooks can arrive out of order, and two writers, say an AI step and a person, can update the same record at once. Last write wins quietly throws one of them away. Carry a version or sequence number, ignore events older than what you have already applied, and write with a version check (an ETag with If-Match, or a version column), so a stale update fails and is retried on fresh data.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions

    Chapter 7 lab

    Write the tool-use instruction for a refund agent that may be run twice

    A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.

    Start the lab
  8. Phase 8 · Data mapping and legacy systems

    1. Data mapping and canonical models

      Two systems rarely mean the same thing by the same field: status codes differ, one stores local dates and the other UTC, one keeps money as a float in dollars and the other as integer cents with a currency code. Write the mapping down field by field, with units, null rules and the reverse direction. A canonical model shared by many systems saves work while it stays small and stable, and becomes a bottleneck once every team must agree on every field.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    2. Identifiers and entity matching

      The same customer is 4417 in the CRM, C-00982 in billing and a slightly different name in support. Keep a crosswalk table that maps each system's ID to one internal ID, match on strong keys such as tax numbers or emails first, and use fuzzy or AI matching only for what is left. Score every match, auto-accept only above a threshold you have measured, and send the uncertain middle to a person, because a wrong merge is costly to undo.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. Schema drift and upstream changes

      Upstream systems change without telling you: a field is added, renamed or retyped, or its meaning shifts while the name stays. Read tolerantly, ignoring fields you do not use, but validate the ones you depend on and fail loudly when they vanish or change type. Watch value distributions too, because a status field that suddenly holds new values is silent drift that a model will happily turn into wrong answers.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. SOAP and XML services

      Many banks, insurers and government agencies still expose SOAP services: XML envelopes described by a WSDL contract, errors returned as SOAP faults, and security often carried in WS-Security headers. Generate a client from the WSDL, harden the XML parser against external entities, and map faults to clear errors. Then wrap the operation behind a small JSON tool or internal API, so the model never has to produce or read XML.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    5. Batch files and SFTP drops

      Plenty of systems still exchange nightly files over SFTP: CSV or fixed-width records, sometimes with a header, a trailer or a separate manifest. Do not start until the file is complete, proven by a done file, a record count or a checksum, and make every load replayable so a bad day can be reprocessed. Quote CSV fields properly, fix the encoding, and quarantine rejected rows with a reason instead of failing or silently dropping the whole file.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. Mainframe and midrange edges

      Core banking, insurance and logistics often run on mainframes and midrange systems that nobody wants an AI touching directly. Reach them through what already exists: a message queue, or an API layer that publishes existing transactions as REST. Their records are laid out by COBOL copybooks in EBCDIC with packed decimals, so decode them with the copybook rather than by guessing, and keep the system's owners in every change.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    7. RPA, screen automation and computer use

      When a system has no API, robotic process automation drives its screens the way a person would, and computer-use models now do the same from screenshots. Both break when the screen changes, both need their own named credentials, and both should log every step and screenshot for audit. Use them as a bridge while you press for an API, keep the model to read-only or reviewed actions, and never hand it an administrator's session.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
  9. Phase 9 · Testing integrations

    1. A test strategy for AI integrations

      An AI integration has three things to test: your own logic, its contracts with other systems, and the model's output. Cover your logic with fast unit tests that stub the model, each boundary with a contract test against a recording or sandbox, and the key paths with a few end-to-end runs. Put model quality behind its own eval gate, not ordinary assertions, so a flaky answer never hides a broken mapping.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    2. Mocks, fakes and recorded responses

      A mock checks your code made the expected call, a fake is a working stand-in such as an in-memory CRM, and a recording replays real responses captured once. Recordings are cheap and realistic but freeze the world on the day you made them, so a vendor's new field or changed error goes unnoticed. Scrub secrets and personal data from every recording, and re-record against a sandbox on a schedule so drift fails a test.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. Contract tests between services

      A contract test checks that two services still agree on what passes between them, without running both together. With consumer-driven contracts, each consumer records the requests and fields it relies on and the provider replays them in its own pipeline, so a renamed field breaks the provider's build, not your integration. For APIs you do not own, diff each new OpenAPI document against the last and treat removed or newly required fields as breaking.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    4. Vendor sandboxes and test tenants

      Most business platforms offer a sandbox, developer account or test mode that behaves like production without real customers or money. It is rarely identical: rate limits, enabled features, seeded data and webhook delivery can differ, so note each difference you rely on. Seed data with scripts you can rerun, tag what your tests create and clean it up, and never copy real customer records into a sandbox to make it look realistic.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    5. Testing code around a nondeterministic model

      Most of an AI feature is ordinary code: building the request, parsing the reply, calling tools, handling errors. Test it deterministically with fixed model outputs, including malformed and refused ones. Where the real model must run, assert on properties, not exact text: the JSON validates, the required field exists, the amount matches the source. Keep a small versioned eval set as a CI gate with a pass threshold, run on every prompt or model change.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. Fault injection for dependencies

      Failure paths are the code least often run, so they are the most likely to be wrong when a provider times out or a CRM returns half a page. Fault injection causes those failures on purpose: added latency, dropped connections, a 429 with Retry-After, a stream cut short, malformed JSON from the model. Write the expected outcome for each fault first, such as one retry then a queued job, and pass only if that happens.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
  10. Phase 10 · Running integrations in production

    1. Observability

      Observability means answering a new question about a live integration from data it already emits, without shipping code. For each model call, record a correlated trace with model id, prompt version, tools called, tokens, latency and error type, redacting personal data before it leaves the process. A status code cannot say which prompt or tool produced a wrong answer; a searchable trace can, and its id stored with each user report turns a complaint into evidence.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    2. Tracing across systems

      One user request can cross an API, a queue, a webhook, a model call and an MCP tool. A trace follows it only if every hop passes the context on: the W3C traceparent header over HTTP, a message attribute on a queue, and for MCP the request's _meta, where the 2026-07-28 revision documents traceparent and tracestate keys. Where context cannot travel, such as a vendor's webhook, log your own correlation id on both sides.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. Rate limits, quotas and backpressure

      Model providers cap requests and tokens per minute, and the business systems you call have quotas too, often shared with other teams. Throttle on your side before the limit instead of finding it through 429s: a token bucket per provider, a queue for bursts, and a priority lane so a waiting user never queues behind a nightly batch. When the queue is full, push back with a 429 or 503 and Retry-After rather than accept work you cannot finish.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. Fallbacks and degraded modes

      A fallback is what the feature does when its primary model or system fails: another model or provider, a cached or rule-based answer, or a manual path such as handing the ticket to a person. Fallbacks that rarely run are often broken when needed, and a second model may answer in a different format, so test them on the same eval set and in drills. Trip them with a circuit breaker, make the degraded state visible, and return to the primary gradually.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    5. Cost and latency

      Cost and latency both grow with tokens and model size, so the strongest levers are fewer tokens and smaller models wherever they do the job. Route easy requests to a cheaper model, cache stable prompt prefixes, trim retrieved context, stream long replies, and send work nobody waits for to a batch API. Measure cost per successful outcome, not per call: a cheap model that needs retries or a human fix is not cheap. Recheck quality after every change.

      Reading

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    6. When a provider or system is down

      When a provider or system you depend on fails, learn it from your own monitoring, not from users: alert on error rate and latency per dependency, and use the vendor's status page to confirm, not detect. Decide early whether to fail over, degrade or pause, tell users and system owners what still works, and keep queued work safe to replay. Afterwards, run a blameless review of what made the outage hurt more than it had to, and fix that.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    7. Versioning and rollout

      Pin an exact model version, not a floating alias, and version the prompt, tool definitions and output schema together, since a change to any one can change behaviour. Roll out a new combination like any risky release: pass the eval set, send a small canary share of traffic behind a flag, compare errors, cost and quality with the current version, then widen in steps. Keep the previous combination deployable so rollback is a flag flip.

      Reading

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions

    Chapter 10 lab

    Write the instruction for an agent that triages a complaint from traces

    A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.

    Start the lab
  11. Phase 11 · Data boundaries and security

    1. Minimising and redacting data before a model call

      Every field sent to a model can leak through logs, provider retention or the answer itself, so decide per field whether the task needs it. Build prompts from an allowlist of fields rather than whole records, and mask personal data the task does not use, such as replacing a name with a placeholder token. If the reply must show the real value, swap it back after the call inside your own system, and keep that mapping out of prompts and logs.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    2. Provider data terms: retention and training

      Before business data goes to a model API, check three things: whether inputs train the provider's models, how long they are kept for abuse monitoring, and which features store data by design. As of November 2026, OpenAI and Anthropic say API data is not used for training by default and offer zero data retention by arrangement, but stored conversations, uploaded files and batch jobs keep data under their own rules. Check every feature you call.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. Data residency and regional processing

      Residency has two halves that providers often control separately: where inference runs and where data rests. As of November 2026, the Claude API sets the first per request with inference_geo and the second per workspace, while an Amazon Bedrock global cross-Region profile may process a request in any supported commercial Region. Read what each promise covers, including logs, caches and files, and enforce allowed regions centrally so no request routes elsewhere.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. Tenant isolation across the integration

      In a multi-tenant product, every place the integration stores or reuses data can leak one customer's records to another: caches, vector indexes, logs, queued jobs and the credentials a tool uses. Carry the tenant id on every request and enforce it at each store, with a separate namespace, index or key per tenant where the risk justifies it, never a prompt asked to filter. Test it as tenant A by proving you can never retrieve, cache-hit or log-search tenant B's data.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    5. Honouring source permissions in AI answers

      When an AI answers from records copied out of a business system, the copy loses the source's access rules unless you bring them along. Store each item's permissions with it, filter retrieval by the asking user's identity at query time, and for sensitive sources recheck access against the source before answering. A summary is still disclosure, so the rule is simple: the model never sees content the user could not open in the original system.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    6. Prompt injection through integrated data

      Any text the model reads from a ticket, email, web page or CRM note can carry instructions, and the model cannot reliably tell them from yours. Treat integrated data as untrusted and limit what a model that read it can do: narrow tool scopes, no unreviewed writes or outbound messages, human approval for anything irreversible. The dangerous mix is private data, untrusted content and a way to send data out in one session; never combine all three.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    7. Audit trails for AI reads and writes

      When an AI reads or writes a business system, someone will later ask who requested it, what the model saw, what it decided and under whose identity each tool ran. Record those as structured events joined by one request id, referencing sensitive content rather than copying it. Keep the trail where the application cannot edit or delete it, such as write-once storage or a hash-chained log, separate from debug logs, which are sampled and short-lived.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
  12. Phase 12 · Migrating models and providers

    1. Model lifecycles and deprecation notices

      Providers retire models on a published schedule, and requests to a retired model fail. Anthropic, for example, moves models from active through legacy and deprecated to retired, and as of November 2026 promises at least 60 days' notice for publicly released models; cloud platforms reselling a model can set their own dates. Inventory every pinned model id, where it is set and who owns it, watch each provider's notices, and migrate at deprecation, not at retirement.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    2. Provider abstraction layers and AI gateways

      A thin internal interface or a gateway over several providers lets you change models by configuration and gives one place for keys, quotas, logging and fallbacks. The cost is the lowest common denominator: features one provider has and another lacks, such as prompt caching or strict schemas, get dropped or behave differently behind a shared shape. Abstract only the calls you make, keep an escape hatch to native features, and test each provider behind the layer.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. Proving a new model is ready

      A candidate model is ready when it matches the current one on the cases your feature actually sees, not when its benchmark scores are higher. Run your existing eval set on both, compare case by case to catch regressions a similar average hides, and check integration details: schema validity, tool-call accuracy, refusals, latency and cost. Agree the parity bar before you see results, and add every regression found to the eval set.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. Moving between provider APIs

      Moving to another API means mapping every part of the request and response: roles and system prompts, tools and tool results, structured output settings, stop reasons, usage and streaming events. OpenAI's Assistants API, shut down on 26 August 2026, is the worked example: assistants, threads and runs map onto prompts, conversations and responses, and your code now runs the tool loop. Build the mapping as one tested adapter and diff old and new outputs before cutting over.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    5. Shadow traffic and dual running

      Shadow traffic sends a copy of real requests to the new model or provider while users still get the old answer, so you compare outputs, errors, latency and cost on real inputs at no risk to them. The shadow path must never write: strip tools with side effects or point them at a sandbox, and keep its data under the live path's privacy rules. Once results hold, cut over one segment at a time, such as one tenant, keeping the old path for rollback.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. Migrating state: conversations, files and indexes

      A provider may hold state for you: stored conversations, uploaded files, hosted vector stores and fine-tuned models, and none of it moves by itself. Inventory it, export what you can, and keep your own copy of anything needed to rebuild, such as source documents and tuning data. Embeddings from different models are not comparable, so a new embedding model means re-embedding the whole corpus and swapping the index in one step, never mixing the two.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions

Practise the AI Integration Engineer roadmap

286 questions, each graded on the server out of 100. Free · no card.

All career paths