Which part needs AI?
Use the service a customer selected on the form to route the inquiry. If all you have is a message like “Can you help with this?”, a classifier can suggest a category. A colleague still writes the reply.
Give the first release a finish line
In this example, staff copy website messages into a CRM, choose a category and assign a colleague. Our example ends when one complete inquiry reaches its reviewer. Sales replies, contract changes and promises about availability stay with the team.
This is a sample specification. Use your own field names, account permissions and release criteria. If customers already choose from a reliable service list, you can leave the classifier out altogether.
- Start when the form accepts a valid submission.
- Create one CRM record with the original reference, service category and reviewer.
- The reviewer decides whether to reply, quote or ask another question.
- Send failures to a queue staff can see and retry.
Decide what each field means
Keep the customer’s own words next to any suggested category. A reviewer should be able to spot a misread message without opening another system. Send the classifier only the text it needs for that decision.
| Field | Source and validation | What it’s for |
|---|---|---|
| inquiry_id | Generated once when the form submission is accepted | Identifies repeat submissions and helps staff trace an error |
| contact_email | The visitor enters it and the form checks it | Finds a contact using the business’s CRM matching rule |
| requested_service | An allowed form choice, when supplied | Routes the inquiry directly when the visitor has chosen a service |
| message | The original inquiry with an agreed length limit | Gives the reviewer context. Send only the relevant text for classification. |
| suggested_category | An allowed category or needs_review | A suggestion that remains separate from the original request |
| processing_status | The workflow records the outcome of each step | Pending, completed or needs_review, with a recorded failure reason |
Where the classifier hands back control
Validate the form and give the inquiry a reference. Route it using the selected service if possible. Send ambiguous text to the classifier. If the suggested category is missing, contradictory or outside your list, put the inquiry in the review queue.
Before creating a record, check whether the CRM already has that reference. Notify a colleague after the CRM confirms the write. Account credentials, permitted API calls and the decision to email a customer stay under the workflow’s control.
Label a set of past inquiries by hand and compare the classifier’s answers with yours. Pay attention to which services it mixes up. A confidence score on its own won’t tell you which mistakes need a human review.
What if the CRM times out?
A timeout can mean the CRM saved the lead but its reply never reached your site. Check the original reference before sending another write. Use the CRM’s duplicate protection where available, or agree how to look up and reconcile the record.
Record each completed step. For example, if the notification fails after the CRM has saved an inquiry, retry just the notification. Set a retry limit and give staff a way to pause the workflow and recover the original message.
Decide who may see the logs, which fields they contain and when to delete them. Use made-up inquiries for early tests. Agree on access and use of customer data before switching to production.
Eight tests to run together
Use test records to walk through the table with the developer. Add an incomplete inquiry from your form and two categories your team often confuses. Save the results as a record of what this release could handle on test day.
| Test | Expected behavior | Evidence to review |
|---|---|---|
| Normal inquiry | One record reaches the agreed owner | Source reference matches the CRM record |
| Repeated submission event | No duplicate inquiry is created | Both attempts refer to the same result |
| Missing email | The form asks for correction before processing | No downstream action was attempted |
| Ambiguous wording | Request enters human review | Original text and suggested category are visible |
| Unsupported model output | Workflow rejects the unexpected value | Validation failure is recorded |
| CRM timeout | Checks whether the record exists before retrying | No duplicate record after recovery |
| Notification failure | Only the unfinished notification is retried | The original CRM record is still the only one |
| Customer asks for a quote | No unapproved reply or price is sent | The request remains available for a person |
Did routing save anyone time?
Compare a typical period before and after the change. Track how long a lead waits for a reviewer, how many reach the right person and how many end up in the queue. Count duplicate and failed writes. Leave test submissions out.
Include usage and hosting costs in that comparison. If staff spend longer correcting categories than they spent assigning them, narrow the classifier’s job or turn it off. Drafting replies for approval can wait for a separate decision.
For a quote, send the form, the CRM name, rough monthly volume and a few anonymized messages. Tell us your routing rules and who checks the queue. That’s enough to start discussing the connection and how you’ll test it.
Discuss an AI integration project Plan permissions for an AI agent