Submit an Upwork Proposal
Take a proposal the user already reviewed in JobPilot and submit it to Upwork. This spends the user's Connects. Never submit without showing the cost and getting an explicit yes in this conversation.
Setup
- Follow
../_shared/setup.md. - Follow
../_shared/upwork-mcp.md: confirm the tools are connected and resolveORG_UID.
Step 1: Load the draft
PROPOSAL=$(curl -fsS -H "authorization: Bearer $JOBPILOT_API_TOKEN" "$JOBPILOT_API/api/upwork/proposals/$ARG")
Require .status == "draft". Anything else → stop and say what the status is; a submitted
proposal must not be sent twice.
Require a non-empty .proposalText and a .jobUrl. Missing either → tell the user to draft it
first with the upwork-proposal skill, then stop.
Step 2: Check for an existing invitation or proposal
Mandatory. Never skip. Upwork rejects a create on a job the user was invited to or already
applied to, with error VJ-JA-10, and the turn is wasted.
list_freelancer_proposalsactioninvitations- is there an invitation for this job?list_freelancer_proposalsactionlist- is there already a proposal for it?
An existing proposal → stop and tell the user; do not submit again. An invitation → use
manage_proposals action accept_invitation with the invitation's id instead of create, and
confirm with type proposal_accept_invitation.
Step 3: Build the preview
manage_proposals action create with:
job_reference- the numeric job id, not the~02…ciphertext. Resolve it from the proposal'sjobUrlviafind_jobsactiongetif the id is not already in the digest.cover_letter- the proposal'sproposalText. Max 5000 characters; if it is longer, stop and ask the user to shorten it rather than truncating their words.charged_amount- the bid, as a number.answers- the proposal'sscreeningAnswers. The preview lists the job'sscreening_questions; if it asks something the stored answers do not cover, stop and ask the user rather than inventing an answer.
This returns a preview. It does not submit.
Step 4: Present and confirm
Show the user, always including the first two:
connects_cost- what this application spends.connects_balance- what they have.unmet_preferred_qualifications, when present. Advisory only, it does not block submission.- The
boostblock, unlessboost.availableis false orboost.recommendationisskip. Boosting is a Connects bid for a top slot, not a flat fee. Showboost.current_top_bidsas the real competing bids andboost.recommended_connectsas the smallest bid that takes a top slot. Let the user pick the number. Never exceedboost.max_boost_connects, and pass what they chose asboost_connects.
Ask whether they want to attach files or highlight portfolio projects and certificates
(get_profile action list_highlights). Both are optional but must be offered.
Then get an explicit yes. A silent or ambiguous reply is a no.
Step 5: Submit and record
confirm_preview type proposal with the preview_id.
On success:
NOW=$(date -u +%Y-%m-%dT%H:%M:%SZ)
curl -fsS -H "authorization: Bearer $JOBPILOT_API_TOKEN" -X PATCH "$JOBPILOT_API/api/upwork/proposals/$ARG" \
-H 'content-type: application/json' -d "$(jq -n --arg t "$NOW" '{status:"submitted", submittedAt:$t}')"
Then refresh the Connects balance so the web app shows what is left:
curl -fsS -H "authorization: Bearer $JOBPILOT_API_TOKEN" -X PUT "$JOBPILOT_API/api/upwork/account" \
-H 'content-type: application/json' -d '{"connectsBalance": <new balance>}'
Read the new balance from get_profile action connects_balance, not by subtracting.
If the user declines, leave the proposal as draft, say nothing was submitted and no Connects
were spent, and stop. Do not start a second preview: a new one silently replaces the pending one.
If Upwork returns an error, leave the proposal as draft and report the error text verbatim. An
insufficient-Connects error carries a purchase URL - pass it on.
Rules
- Never submit without an explicit yes in this conversation, naming the Connects cost.
- One submission per proposal. Status must be
draftgoing in. - Never invent a screening answer or a bid. Both come from the stored proposal or the user.
- Never boost by default. It is a separate Connects spend and a separate decision.
- A submitted boost cannot be edited or withdrawn here. Verify what Upwork stored with
list_freelancer_proposalsactiongetand reportterms.connectsBidas the real figure.