Write a cover letter for a job
generate_cover_letterWrite the cover letter for a vacancy in the user's tracker, from their resume and the analysis, with an optional tone, length, up to three of the vacancy's key_strengths to lead with, and a personal note. The letter is written in the user's profile language and states only facts from the resume; a resume with no work history still gets a letter, built from its summary and skills. The letter is saved on the vacancy's Cover Letter tab in the web app, the same letter the web and the browser extension write. When the vacancy already has a letter, this replaces it: the new one is written with the previous version in view and the change in options, and an option not given keeps the value the previous letter used. Runs asynchronously — returns a task_id; get_task_status reports when it is written, and get_vacancy_detail then shows has_cover_letter: true. The letter text itself is not returned. Spends one cover letter from the plan (the free plan has one a month); replacing an existing letter spends another one. Returns 'not_found' if the vacancy does not belong to the current user, 'no_resume' if the user has no resume, 'limit_exceeded' if the plan allowance is used up.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | processing | |
| task_id | Yes | Background task id; get_task_status reports when the letter is written. | |
| vacancy_id | Yes | Id of the vacancy analysis the letter is for. |