Get or save the user's answers
freeapply_user_answersRetrieves and saves the user's own answers to specific job application questions so later forms can reuse them instead of guessing.
Instructions
Gets or saves the user's own answers to application questions, so you never guess one. Unlike freeapply_get_settings (the user's general details) it holds answers to specific form questions, and unlike freeapply_update_job status needs_info it asks the user nothing new. Use get before retrying a job the user re-queued from the Needs you tab, and save when the user answers a question in this conversation, so later forms can reuse it. Save only the user's own words: saved answers count as facts in freeapply_check_text. Behavior: get is read-only. save replaces an answer saved under the same question; an empty answer removes it. Parameters: action get needs job_id. action save needs label, the question as forms word it (e.g. "Are you willing to relocate?"), and answer, the user's words. Returns: get {job_id, answers, saved_answers}: answers are the {label, answer} pairs the user gave for that job (empty when none), saved_answers maps questions to reusable answers. save {label, saved, removed, saved_answers}. Errors: get without job_id or with an unknown one, save without label, or another action.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | For save: the question, worded as forms ask it, e.g. "Are you willing to relocate?". | |
| action | Yes | get a job's answers, or save one reusable answer. | |
| answer | No | For save: the user's answer in their own words; empty to remove a saved answer. | |
| job_id | No | For get: the job whose answers you need. |