# Creating a Contract in Podio and sending it via RightSignature

Let's say you want to generate a **Contract from your Podio data**, and then send it on to a contact to get a legally-binding signature via your [RightSignature](https://www.sharefile.com/rightsignature) account.

This was previously not possible, but now is not only possible, but easy. Here's how:

## Connect RightSignature

Connect your **RightSignature** account to **Workflow Automation**. Go to the **Account** page, scroll down to the **Integrations** section, and click on **Connect** next to the **RightSignature** integration.

![Connect RightSignature](https://www.progress.com/podio/documentation/assets/312c34553b3dc9ec1a36a627fcf18256/connect-e-sign1.png)

![Connect RightSignature](https://www.progress.com/podio/documentation/assets/41e7dcc748c8a8f0a6f54b69cdea9a99/connect-e-sign1a.png)

## Build the Flow

Now that we've got **RightSignature** connected, let's build a flow to generate our **Contract** and **Send it for Signature**. In this example, we're triggering a flow when the **Command** category field is change to **Generate Contract**. It then gets the related details from **Leads** app, creates the **PDF** contract, and then sends it via **RightSignature**.

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

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

![RightSignature Build Flow](https://www.progress.com/podio/documentation/assets/c4b0054475e399e0453b14122dc42785/esign-build-flow1a.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.

![RightSignature Build Flow](https://www.progress.com/podio/documentation/assets/e1297aec111ae623dc966f9ea8ae759c/esign-build-flow1b.png)

## Result

Click on the **Generate Contract** category field on an item:

![RightSignature Result](https://www.progress.com/podio/documentation/assets/cece59debb5d2aacf56f11cc12f9e16c/esign-result1.png)

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

![RightSignature Result](https://www.progress.com/podio/documentation/assets/f06352c8c4d9cdf98681f22efb65d5b0/esign-result1a.png)

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

![RightSignature Result](https://www.progress.com/podio/documentation/assets/4d5454b3a59f38a3402aa8a55630d47a/esign-result1b.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:

![RightSignature Result](https://www.progress.com/podio/documentation/assets/5bff477e1096895ff802f24a1b6e1c5c/esign-result1c.png)

![RightSignature Result](https://www.progress.com/podio/documentation/assets/c4bff0ab04c9dfaac0fa833148bb0b06/esign-result1d.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.
