# Workflow Automation: Send E-Sign Contract via RightSignature

With [WorkFlow Automation](https://workflow-automation.podio.com/) you can generate a Contract from your Podio data, and then send it on to a contact to get a legally-binding signature via your RightSignature account.

## Connect RightSignature

The first step is to connect your RightSignature account to Workflow Automations. Go to the ***Account page***, scroll down to the ***Integrations section***, and click on ***Connect*** next to the RightSignature version are on.

This will take you to your RightSignature account to authorize the integration access.

## Build the Flow

Now that we've got RightSignature connected, let's build a flow on [Workflow Automation](https://workflow-automation.podio.com/) to generate our Contract and Send it for Signature.

In this example, we're triggering a flow when the "Command" category field is changed to "Generate Contract". It then gets the related details from Leads app, creates the PDF contract, and then sends it via RightSignature.

![Build Flow](https://www.progress.com/podio/documentation/assets/de35e737f3cc0dc4dc9ad7769bf10a85/build-flow.png)

We also want to capture the event when the contract is signed. For this, there is a new Flow trigger:

![RightSignature Doc Signed](https://www.progress.com/podio/documentation/assets/c4b0054475e399e0453b14122dc42785/doc-signed.png)

And we'll create a flow to change the contract item status to "Signed" as well as enter a comment when the contact has signed the contract.

![Signed Contract](https://www.progress.com/podio/documentation/assets/e1297aec111ae623dc966f9ea8ae759c/signed-contract.png)

## The Result

Now, when I click on the "Generate Contract" category field on an item:

![Generate Contract](https://www.progress.com/podio/documentation/assets/cece59debb5d2aacf56f11cc12f9e16c/generate-contract.png)

Workflow Automation generates the PDF, attaches it to the item, and sends it for signature via RightSignature:

![Generate PDF](https://www.progress.com/podio/documentation/assets/f06352c8c4d9cdf98681f22efb65d5b0/generate-pdf.png)

The contact will receive an email notification from RightSignature with instructions to sign the document:

![Sign Document](https://www.progress.com/podio/documentation/assets/4d5454b3a59f38a3402aa8a55630d47a/sign-document.png)

And when the contact has signed the document, Workflow Automation will update the status of the Contract Item in Podio and add a comment to show that it's been signed:

![Contract Status](https://www.progress.com/podio/documentation/assets/5bff477e1096895ff802f24a1b6e1c5c/contract-status.png)

## Update

On the signed event flow, Workflow Automation now attaches the signed PDF from RightSignature on any "Update Item", "Create Item", or "Create Comment" Action.
