AiDocumentImport now supports Opportunity imports (Global Talent & Global Teacher only) and public URL imports — in addition to person CVs.
createAiDocumentImportsourceUrl — 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.opportunityId — the opportunity to attach the import to. Required for opportunity imports; omit for the current user's CV import.AiDocumentImportimportableType — "Person" or "Opportunity", what the import belongs toperson — set for person imports, null for opportunity importsopportunity — set for opportunity imports, null for person importssourceUrl — the URL the import was created from (null for file uploads)AI document import is only supported for Global Talent and Global Teacher opportunities.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.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.open opportunity demotes it to draft.document content is provided without a filename, the mutation returns Document filename is missing.mutation {
createAiDocumentImport(
document: { content: "data:application/pdf;base64,...", filename: "job-description.pdf" }
opportunityId: "12345"
) {
id
status
importableType
}
}mutation {
createAiDocumentImport(
sourceUrl: "https://example.com/job-posting"
opportunityId: "12345"
) {
id
status
importableType
}
}query {
aiDocumentImport(id: "987") {
id
status
importableType
sourceUrl
document { url }
failureReason
completedAt
failedAt
opportunity { id title }
person { id fullName }
}
}{
"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
}
}
}{
"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
}
}
}