---
name: hipaaform-embed
description: Add a hipaaform.ai HIPAA-ready form to a website or WordPress site, track its conversions, and send submissions on through signed webhooks, the REST API or built-in connectors. Use when a user wants a patient intake, appointment request or secure contact form on a healthcare website, or asks to integrate hipaaform.ai.
---

# Embedding hipaaform.ai forms

hipaaform.ai hosts HIPAA-ready forms for healthcare websites. A form is built in the hipaaform.ai panel by the practice and identified by a form ID (6 to 32 lowercase letters and digits). Your job as an agent is to place that form on the user's site and connect it to their tracking and back-office systems. The form runs in an isolated iframe served from `https://app.hipaaform.ai`, so patient answers never touch the host site.

## Before you start

0. If you can use MCP servers, connect to `https://app.hipaaform.ai/mcp` (the user signs in and approves). Its tools let you create and design a form (`list_templates`, `create_form`, `update_form`, `publish_form`) and give you the form ID, the exact snippet and a check of the finished page (`list_forms`, `get_embed_code`, `check_installation`), so you can skip asking. It never returns submissions.
1. Ask the user for the form ID. It is shown on the form's **Share** tab in the hipaaform.ai panel. Do not invent one.
2. If the user has no account, send them to https://app.hipaaform.ai/signup. Where self-service sign-up is open it starts a free trial; otherwise it leads to the contact form at https://app.hipaaform.ai/#demo. Forms go live once the account's Business Associate Agreement is signed. Forms are built in the panel, by hand, from a template or with the panel's own AI form builder where it is switched on: the REST API reads forms and submissions but does not create forms, so do not try to create one programmatically.
3. Confirm the form is published. Unpublished forms show "This form is not available".

## Add the form to a page

Any website, site builder or framework:

```html
<div data-hipaaform="FORM_ID"></div>
<script src="https://app.hipaaform.ai/embed.js" async></script>
```

- Include the script once per page. It mounts every `data-hipaaform` element and resizes each iframe automatically; do not set a fixed height.
- Optional: `data-title="New patient intake form"` sets the iframe's accessible title.
- In a single-page app, call `window.hipaaform.scan()` after rendering new `data-hipaaform` elements.
- If the site sends a Content Security Policy, add `https://app.hipaaform.ai` to `script-src` and `frame-src`.

WordPress: install the plugin from https://app.hipaaform.ai/downloads/hipaaform-wordpress.zip (Plugins → Add New → Upload Plugin), then use the shortcode `[hipaaform id="FORM_ID"]` or the **HIPAA Form** block.

No embed at all: link to the hosted page `https://app.hipaaform.ai/f/FORM_ID`.

## Track conversions

The host page is told when a form is submitted. The signal contains the form ID only, never answers.

```js
document.addEventListener('hipaaform:submit', (event) => {
  // event.detail.formId
});
```

If `window.dataLayer` exists, `{ event: 'hipaaform_submit', hipaaform_id: 'FORM_ID' }` is pushed for Google Tag Manager. UTM parameters, ad click IDs, referrer and first-touch landing page are captured with each submission automatically; nothing needs to be configured.

## Receive submissions in another system

Pick the route by where the data is going. All of them are set up by the user in the panel; anything that carries answers needs an account owner to confirm the destination first.

- **Webhook** (per form, under **Integrations**): the user sets an HTTPS URL and signing secret. Each submission is sent as a JSON `POST` with event `submission.created`. Verify `X-Hipaaform-Signature`, which is `sha256=` plus the hex HMAC-SHA256 of `X-Hipaaform-Timestamp + "." + raw body` keyed with the secret. A failed delivery is retried up to five more times over about 15 hours, so make the receiver idempotent on the submission ID. Payload schema and verification code for Node.js, Python and PHP: https://app.hipaaform.ai/docs/webhooks.md
- **REST API** (keys under **Workspace → API keys**): base URL `https://app.hipaaform.ai/api/v1`, bearer token, 120 requests per minute per key. It lists forms, reads and deletes submissions, downloads uploaded files and manages subscriptions (`POST /hooks`). It does not create or edit forms. Reference: https://app.hipaaform.ai/docs/api.md
- **Connectors** (per form, under **Integrations**, no code): Google Sheets, HubSpot, Salesforce and FHIR R4 EHRs.
- **Chat alerts**: Slack, Microsoft Teams or Google Chat incoming webhooks. They announce a new submission and never carry answers.
- **Zapier, Make and n8n**: use the webhook above with the tool's catch-hook trigger. Details for every route: https://app.hipaaform.ai/docs/automations.md

## Rules

- Never collect health information with a different form and forward it; use the hipaaform.ai embed so answers stay inside the isolated frame.
- Never read from, or inject scripts into, the form's iframe.
- Never send webhook payloads or API responses to analytics, logging or chat tools; they contain protected health information.
- Never put an API key or webhook secret in client-side code or a repository; keep them in a secret manager.
- Before sending answers to a third party (a CRM, spreadsheet or automation tool), remind the user they need their own Business Associate Agreement with that vendor.
- Do not describe the site as "HIPAA certified". hipaaform.ai is HIPAA-ready and compliance is shared with the practice.

## Reference

- Embed guide: https://app.hipaaform.ai/docs/embed.md
- WordPress plugin: https://app.hipaaform.ai/docs/wordpress.md
- Attribution and conversion tracking: https://app.hipaaform.ai/docs/attribution.md
- Webhooks: https://app.hipaaform.ai/docs/webhooks.md
- REST API: https://app.hipaaform.ai/docs/api.md
- Automations and integrations: https://app.hipaaform.ai/docs/automations.md
- Security and HIPAA: https://app.hipaaform.ai/docs/security.md
- Everything in one file: https://app.hipaaform.ai/llms-full.txt
