Can Workflow Approver Approve Documents via Webform?

Hi Team,

I have a requirement where I need to allow document approval through a Web Form in Frappe.

For example:
I have a Doctype with a workflow (e.g., Article or Rate creation) that goes through multiple approval stages (Department Head → Manager → GM). I want the approver to be able to see the document via a Web Form and approve or reject it directly from there — without logging into the desk.

Is it possible to integrate workflow actions (like Approve/Reject) inside a Web Form?
If yes, what is the best approach to implement this?

Any help or guidance would be greatly appreciated.

Thanks in advance!

yes, you can write a code for that.

Thank you @Sudhanshu any reference is there?

give a button to approve or Reject,
on click of that directly change the value of workfllow_state.