Skip to content

Connect a Custom GPT to this WordPress site. ChatGPT chooses a template and fills mapped fields. WPsigner creates the document, emails the signer, and stores the signed PDF.

Admin path: WPsigner → Integrations → ChatGPT


  1. Go to WPsigner → Integrations → ChatGPT.
  2. Copy WordPress URL and AI API base (/wp-json/insigner/v1/ai/).
  3. Click Create an API key (WPsigner → Settings → API).
  4. Click Download OpenAPI spec.
  5. In ChatGPT: Create a GPT → Actions → Import that JSON.
  6. Authentication: API key headers X-WPS-API-Key and X-WPS-API-Secret.
  7. Server URL: https://your-site.example/wp-json/insigner/v1
  8. Paste the Custom GPT instructions from the WPsigner screen into the GPT.

Recommended GPT flow (same as the on-screen instructions):

  1. Call list_templates and pick a match.
  2. Call get_template and read variables.
  3. Fill only those keys. Never invent field names.
  4. Call preview_send and show every field and signer.
  5. Ask: “Send this document now?”
  6. Only if they say yes, call send_document with send=true and confirm=true.

In Document Builder text or ChatGPT-generated content:

TokenBecomes
((name)) or {{name}}Text field name
((country))Text field country
((date:start_date))Date field start_date
((signature:1))Signature for signer #1
((signature:2))Signature for signer #2

PDF templates use the variable keys already set on each field in the WPsigner editor. Signature and initials are never prefilled.


All routes use the same API-key auth as the rest of the REST API.

MethodPathPurpose
GET/ai/templatesList PDF and Document Builder templates (search, source=pdf|builder)
GET/ai/templates/{pdf|builder}/{id}Template name, variables, signers needed
POST/ai/previewDry run. No document is written
POST/ai/sendCreate from a PDF or builder template. Send only with confirm=true
POST/ai/from-contentCreate from HTML/text with ((tokens)). Needs Document Builder. Same confirm rule
GET/ai/openapiOpenAPI document (server URL set to this site)

POST /ai/send with source=content uses the same path as /ai/from-content.


IssueSolution
401 / 403Full-access key, both headers, HTTPS
confirm_requiredCall preview, ask the user, then send with confirm=true
document_builder_requiredInstall Document Builder for from-content
Empty or wrong fieldsUse only keys from get_template. Do not invent names
GPT calls the wrong hostServer URL must be /wp-json/insigner/v1 on this site