AFI AFI

OneHash AI

Estimated reading: 2 minutes Updated August 1, 2026

OneHash is an all-in-one business suite (CRM, ERP, helpdesk) built on the open-source ERPNext platform. Advanced Form Integration sends form submissions to OneHash as new leads, contacts, or customers.

What you’ll need

  • An active OneHash account.
  • Your OneHash Company Name (the prefix in your portal URL).
  • A OneHash API Key and API Secret (instructions on the AFI OneHash settings page).
  • The Advanced Form Integration plugin installed and activated.

Connect OneHash to AFI

  1. In WordPress, go to AFI → Settings.
  2. Enable OneHash and click Save Changes.
  3. Open the OneHash tab. Find the in-page instructions on locating your API Key and API Secret.
  4. Enter Company Name, API Key, and API Secret.
  5. Click Save Changes.

Create the integration

  1. Go to AFI → Add New.
  2. Configure the trigger.
  3. In Action → Platform, select OneHash.
  4. In Task, choose Add Lead, Add Contact, or Add Customer depending on the record type you want to create.
  5. Map the form fields:
  • Email (required), Name.
  • Custom OneHash fields (visible based on the chosen record type).
  1. Optional: configure Conditional Logic.
  2. Click Save Integration.

Screenshot: AFI field-mapping screen with OneHash record-type and contact fields visible

Tasks supported

Add Lead

Creates a new lead: used for inbound, unqualified contacts.

Add Contact

Creates a known person record, typically tied to an existing customer.

Add Customer

Creates a customer record. Use when you onboard customers and want them to exist in OneHash before they ever submit a related ticket or invoice.

Conditional logic example

Create a OneHash Lead when the form’s qualification_status field is “new”. Already-qualified inquiries create a Contact + Customer pair via separate integrations.

Troubleshooting

Integration doesn’t fire

Open AFI → Log and find the most recent entry. The log shows the request payload sent to OneHash and the response received, usually pointing straight at the cause.

“Authentication failed”

OneHash requires Company Name, API Key, AND API Secret. The Company Name is just the prefix. Don’t include .onehash.ai or any path.

Related docs