Check text and save the cover letter
freeapply_check_textVerifies a cover letter or free-text answer against your profile and saved facts before you submit, flagging unsupported claims so you can fix them. Optionally saves a passing letter as a PDF.
Instructions
Checks a cover letter or free-text answer against what the user really has, and turns a passing cover letter into a PDF to upload. Unlike freeapply_update_job, which only records the result, it is where every piece of prose is checked before you type or attach it. Use it before typing any written answer or attaching any letter, and again after each fix. Not for short fields taken straight from the settings, such as a name, a date or yes/no. Behavior: flags every skill, tool, number or claim that the résumé, settings, highlights and saved answers don't support. Without save it changes nothing. With save a passing letter becomes a PDF in the documents folder, kept with the job; a failing one is never saved, saving again replaces the file, and a job already applied to is refused. Parameters: kind cover_letter also checks the user's chosen length, their sign-off, leftover placeholders and that the company is named; answer, the default, checks facts only. job_id adds the posting's keywords, counts numbers from the posting and the user's answers for that job as facts, and is needed for save. company names the employer when there is no job_id. For a letter, pass save from the first call so a passing letter is checked and saved at once. Returns: {ok, problems}, problems being plain sentences to fix, remove or ask the user about. With job_id also keywords {used, unused}: the posting's supported skills this text uses, and those it could still use. With save also file {path, name, bytes}, or a note why it wasn't saved. Errors: save without kind cover_letter and a job_id, or an unknown job_id. If the résumé was never saved, most claims are reported as unsupported.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | What the text is. Optional; default answer. | |
| save | No | Save a passing cover letter as a PDF. Optional; default false. | |
| text | Yes | The cover letter or answer to check, exactly as you will type or attach it. | |
| job_id | No | The job it is for. Optional; needed for save. | |
| company | No | The employer, when there is no job_id. Optional. |