Before you start
- A knowledge base with content indexed. It must not be an internal knowledge base.
- An owner or admin role in the workspace.
- A way to add a
<script>tag to the page that holds the form.
Set up
Create the deflector
Go to Integrations → Support form deflectors and click Add deflector. Enter a name, pick the knowledge base, and pick a Public client key. To make one, click Create public key (New public key when the knowledge base already has keys). Click Create and set up.
Point it at the form
Inspect your support form in the browser and find two selectors:
Enter both on the Form wiring tab and click Save changes. A selector can be CSS, a
| Field | What to enter | Example |
|---|---|---|
| Form selector | The <form> element | #new_request |
| Question field | The field where the reader describes the problem | #request_description |
name or an id. For fields inside an iframe or a shadow root, see Crossing DOM boundaries.Rename the submit button
A button that says “Submit ticket” but opens an answer makes readers think the ticket was filed. On the Copy tab:
- Set Submit button text while armed to something like
Next step. - Set Notice shown before generating to a short line, such as “We’ll check for an answer first. If we can’t help, your ticket goes straight to our team.”
Paste the snippet
Copy the Embed snippet from the Setup tab into the page with the form:This also starts the Ask AI widget, with its button in the page corner. To keep only the deflector, add
data-launcher-button-hidden="true" and data-modal-open-on-command-k="false".Test it
Add
Remove
data-debug-mode="true" to the script tag. Open the page and submit a real question of at least 25 characters. localhost, 127.0.0.1 and ::1 always pass the deflector’s Allowed domains, so you can test locally. The public client key’s own allowed origins still apply, with no exception for localhost: if the key lists any origins, your local address must be one of them.Read the browser console:| You see | What it means |
|---|---|
deflector: attached | The form and question field were found |
No attached line | A selector matched nothing within 10 seconds |
question below the 25-character floor | The question was too short. Type a longer one |
no deflection | It ran, but no answer was confident enough to show |
could not load configuration 403 | The page’s domain isn’t in Allowed domains or in the public key’s own Allowed origins, the knowledge base is internal, or the deflector is disabled |
| The ticket files with no pause | Set Intercept on to Click event (Form wiring, Advanced) |
data-debug-mode when you are done.Next
Behaviour
Every setting, attribute and default.
Zendesk support form
Step-by-step for Zendesk Guide.