Skip to Content
For developersGuidesCheck and fix a draft for a loan officer

Check and fix a draft for a loan officer

A loan officer writes an email in your product. Before they send it, you want TrueTone to check it against the ad rules that apply to them and offer a fix for anything it flags. This guide does that as a platform partner, acting as that loan officer.

You need: a ttp_ credential that carries the Voice transform Capability Group, and a loan officer linked to you under your id for them (here, crm-user-48213).

Check the draft

POST /api/v1/outside-check HTTP/1.1 Host: hub.truetone.ai Authorization: Bearer ttp_your_secret_here TrueTone-Act-As: crm-user-48213 Content-Type: application/json { "text": "Rates as low as 5.99%! Call me today.", "channel": "email", "depth": "full" }
FieldRequiredWhat it does
textyesThe words exactly as written, up to 20,000 characters
channelnoWhere the words are going: email (the default), social_post, blog, video_script, flyer or postcard
depthnoinstant (the default) runs the pattern rules. full adds the AI read of the rules that need judgment
save_to_recordsnotrue keeps a full check on the loan officer’s records. Otherwise only a usage row is kept, never the words

The check uses the rules that apply to the loan officer you named: federal ad rules, the state rules for their licensed states, and their company’s own rules. You never send rules, and you can’t choose another company’s.

Read what it found

{ "depth": "full", "label": "1 line flagged", "outcome": "findings", "findings": [ { "id": "L1", "start": 0, "end": 22, "text": "Rates as low as 5.99%!", "severity": "blocking", "rule": "rate-without-apr", "reason": "A rate needs its APR beside it.", "fix": "Add the APR.", "citation": "12 CFR 1026.24" } ], "notice": null, "creditsCharged": 0, "saved": false }
  • findings lists each rule a stretch of the text breaks, with offsets into the text you sent. Show them on the lines they point at.
  • label names the check that ran and what it found. Show it exactly as written.
  • depth says what actually ran. When the loan officer’s free full checks for the day are used up, or the full read can’t finish, the instant check runs instead and notice says so in one sentence.

Fix a flagged line

Send the same text back with one finding, exactly as it came:

POST /api/v1/outside-check/fix HTTP/1.1 Host: hub.truetone.ai Authorization: Bearer ttp_your_secret_here TrueTone-Act-As: crm-user-48213 Content-Type: application/json { "text": "Rates as low as 5.99%! Call me today.", "channel": "email", "finding": { "rule": "rate-without-apr", "start": 0, "end": 22, "severity": "blocking", "reason": "A rate needs its APR beside it.", "fix": "Add the APR." } }
{ "text": "<the whole text, with the flagged sentence rewritten in the loan officer's voice>", "applied": true, "explanation": "<one line on what changed>", "creditsCharged": 0, "stillFlagged": [] }

Only the sentence holding the finding is rewritten, in the loan officer’s own voice. Every other word comes back exactly as you sent it. The rewrite is kept only when it clears the rule and breaks no new one; otherwise applied is false and the text comes back unchanged.

Check again before it goes out

stillFlagged lists every rule the whole rewritten text still breaks. Run the check once more on the final text before the loan officer sends it, and let them decide what goes out.

Good to know

  • It costs no credits. The instant check is free. A full check and a fix each use one of the loan officer’s free checks (100 a day, within their company’s daily ceiling), the same ones “Check now” and “Fix it” use in the app. Past them, the check falls back to instant and the fix does not run, each with a sentence that says why.
  • It is a check, not a ruling. A clean result means the automated check found nothing. It does not mean a person reviewed the words. Never present it to the loan officer as a ruling or a sign-off. Show the label as written, and leave the decision to them and their company’s review.
  • It is recorded as you. Both calls appear in your action log as your credential acting for this loan officer. See What the loan officer sees.

The same two calls work with a loan officer’s own ttk_ key and no TrueTone-Act-As header. A partner adds only the header and its own credential.

Last updated on