AI Document Imports - Opportunity imports & public URL support
November 5th, 2026

AiDocumentImport now supports Opportunity imports (Global Talent & Global Teacher only) and public URL imports — in addition to person CVs.

New arguments on createAiDocumentImport

  1. sourceUrl — a public URL to import from instead of an uploaded document. Exactly one of document or sourceUrl must be provided; both or neither returns Please provide either a document or a public URL.
  2. opportunityId — the opportunity to attach the import to. Required for opportunity imports; omit for the current user's CV import.

New fields on AiDocumentImport

  1. importableType — "Person" or "Opportunity", what the import belongs to
  2. person — set for person imports, null for opportunity imports
  3. opportunity — set for opportunity imports, null for person imports
  4. sourceUrl — the URL the import was created from (null for file uploads)

Behavior notes

  • Opportunity imports are restricted to Global Talent and Global Teacher programmes — anything else is rejected with AI document import is only supported for Global Talent and Global Teacher opportunities.
  • On COMPLETED, extracted fields are already written onto the record — refetch the opportunity to populate the form. Only fields found in the source are written; existing values are never cleared.
  • When a document gives a salary range (e.g. $50k–$70k), the lowest figure is used for Gross Salary.
  • On FAILED with failureReason starting URL_CONTENT_NOT_FOUND, the URL couldn't be read — show a "we couldn't read this link" error and let the user upload a document instead. This will be common for fresh job postings, as URL reads go through Bing's index.
  • Running an import on an open opportunity demotes it to draft.
  • When document content is provided without a filename, the mutation returns Document filename is missing.

Mutation — document upload to an opportunity

mutation {
createAiDocumentImport(
document: { content: "data:application/pdf;base64,...", filename: "job-description.pdf" }
opportunityId: "12345"
) {
id
status
importableType
}
}

Mutation — public URL to an opportunity

mutation {
createAiDocumentImport(
sourceUrl: "https://example.com/job-posting"
opportunityId: "12345"
) {
id
status
importableType
}
}

Query

query {
aiDocumentImport(id: "987") {
id
status
importableType
sourceUrl
document { url }
failureReason
completedAt
failedAt
opportunity { id title }
person { id fullName }
}
}

When import succeeds

{
"data": {
"aiDocumentImport": {
"id": "987",
"status": "COMPLETED",
"importableType": "Opportunity",
"sourceUrl": "https://example.com/job-posting",
"document": null,
"failureReason": null,
"completedAt": "2026-11-05T10:32:14Z",
"failedAt": null,
"opportunity": { "id": "12345", "title": "Primary English Teacher" },
"person": null
}
}
}

When the URL cannot be read

{
"data": {
"aiDocumentImport": {
"id": "988",
"status": "FAILED",
"importableType": "Opportunity",
"sourceUrl": "https://example.com/fresh-job-post",
"document": null,
"failureReason": "URL_CONTENT_NOT_FOUND: Could not read the content of the provided URL",
"completedAt": null,
"failedAt": "2026-11-05T10:41:02Z",
"opportunity": { "id": "12345", "title": "Primary English Teacher" },
"person": null
}
}
}
Crafted by