Record what an employer did
freeapply_record_outcomeRecords each employer's response to a job application—acknowledged, replied, assessment, interview, rejected, or offer—so you can track replies and update the job's outcome.
Instructions
Records what an employer did with an application: acknowledged, replied, assessment, interview, rejected or offer. Unlike freeapply_update_job, which records your side (applied, skipped, ...), it is about the employer's response. Use it for each employer email found during a reply check, between freeapply_reply_check start and finish, and when the user tells you about a call or corrects an outcome. Not for your own steps. Behavior: with an email (gmail_message_id) it stores the email and raises the job's outcome only if this email ranks higher than the current one (an interview outranks an acknowledgement); the same gmail_message_id again stores nothing new. Without an email it sets the outcome exactly, whatever its rank, and an empty outcome clears it. Parameters: outcome is required; "" clears it, without an email only. job_id, from the reply-check plan or freeapply_list_jobs, is required without an email; with an email it is optional, but then no outcome changes. The email fields fill the dashboard's Replies tab: gmail_thread_id, company, sender, subject, received_at (ISO 8601), summary (at most 20 words, no personal data beyond what is needed) and mail_action (starred, labeled:, starred+labeled: or none). Returns: with an email {recorded, kind, job_id, outcome}, where outcome is the job's outcome afterwards and both are null without job_id; without one {job_id, outcome}. Errors: an unknown job_id, no job_id and no email, or an empty outcome with an email.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | No | The job it is about. | |
| sender | No | With an email: sender address. | |
| company | No | With an email: the employer that sent it. | |
| outcome | Yes | What the employer did: acknowledged (automatic 'we received your application' email), replied (a person replied), assessment (test, assignment or screening questionnaire), interview (interview requested or scheduled), rejected (rejection), offer (offer), withdrawn (candidate withdrew); or "" to clear it. | |
| subject | No | With an email: subject line. | |
| summary | No | With an email: one sentence on what it says. | |
| mail_action | No | With an email: what you did with it in Gmail. | |
| received_at | No | With an email: when it arrived (ISO 8601). | |
| gmail_thread_id | No | With an email: Gmail thread id. | |
| gmail_message_id | No | The employer email's Gmail message id. |