Renew a contract from Attio and write the result back

The workflow reads the deal, its company and its contact from Attio and fills the renewal agreement with the fee and term given at the start. Once the customer contact and your account manager have signed, it moves the deal to Renewed with the new fee and files the signed agreement on the deal; if the envelope is declined, the account manager gets an email instead.

Your CRM
Free download: the workflow file to import, the service renewal agreement template and the field map
› Read the transcript

Northwind Robotics' annual service plan ends in January. In Attio the deal is due for renewal: forty-eight thousand dollars a year, with Priya Nair as their contact.

This Docusign workflow renews it. It reads the deal from Attio, checks that the deal exists, reads the company and the contact, and fills the renewal agreement.

Priya signs first, then Daniel, the account manager. Once both have signed, it moves the deal to Renewed with the new fee and files the signed agreement on the deal. If the envelope is declined, Daniel gets an email instead.

Daniel has agreed the new fee with Priya: fifty-one thousand six hundred dollars a year, from the first of February. He starts the renewal with the deal's record id, the fee and the new term. Everything else comes from Attio.

Priya gets the renewal agreement by email.

Northwind's name and address, Priya as the contact and the current plan come from Attio. The new term and the fee come from the start. Priya signs, and finishes.

Then Daniel, the account manager, gets his copy.

He countersigns for Halyard Field Services, and finishes.

Back in Attio, the deal has moved to Renewed, its value is now fifty-one thousand six hundred dollars, and the signed agreement is filed on it. Nobody updated the CRM by hand.

You don't have to start it from Docusign. The first alternative is the Baton Launcher, our browser extension. Open it next to a deal in Attio, and it recognises the record on the page.

Search for the renewal workflow, pick it, and take the deal's id from the page.

Type the agreed fee and the new term, and launch.

The renewal is on its way to Priya, without leaving Attio.

The second alternative runs on its own. In Attio, a workflow watches the deal stage. When a deal moves to Renewal agreed, it sends the deal and its value to Baton.

Baton matches it to an automation, and starts the same Docusign workflow with the deal's id and fee, and the term set in the automation.

So when Daniel moves the spare parts deal to Renewal agreed,

the renewal goes out to Priya, and once both have signed, the deal is marked renewed.

Starts
From an API call or by hand
Steps
10
Document
Service renewal agreement, 1 page
Signers
The customer contact, then your account manager
Last test run
25 November 2026
Workflow Builder canvas: Start Workflow from an API call, Read Deal from Attio, Check the Deal Was Found, Read Company and Read Contact from Attio, Prepare eSignature Template, Send Documents for Signature to the customer and the account manager, Check the Renewal Was Signed, then Mark Deal Renewed in Attio and File Upload to Attio, or Tell the Rep It Was Not Signed.
Captured in Docusign Workflow Builder with sample records.View full size

What it does

  1. Start: Start WorkflowFrom an API call, or Run Workflow by hand. Inputs: dealId, annualFee (Currency), renewalStart, renewalEnd.
  2. 1
    Read Deal from AttioDeals where Record ID equals dealId: Record ID, Deal name, Deal value, Associated company, Associated people.
  3. 2
    Check the Deal Was FoundDeal found: the read returned a record. Otherwise Tell the Rep the Deal Was Not Found emails the person who started the run, and nothing is sent.
  4. 3
    Read Company from AttioCompanies where Record ID equals the deal's Associated company: Name, and Primary location Line 1, Locality and Region.
  5. 4
    Read Contact from AttioPeople where Associated deals equals dealId, one record: Name: Full name, Email addresses.
  6. 5
    Prepare eSignature TemplateThe service renewal agreement template, with its six data labels mapped.
  7. 6
    Send Documents for SignatureTo the customer contact first, then the account manager, with the subject "Please sign: your service renewal".
  8. 7
    Check the Renewal Was SignedSigned by both: the envelope is completed. Otherwise the run takes the not-signed path.
  9. 8
    Mark Deal Renewed in AttioDeal update: Deal stage becomes "Renewed" and Deal value becomes annualFee.
  10. 9
    File Upload to AttioThe signed agreement in the deal's Files, as Signed Service Renewal from {renewalStart}.
  11. 10
    Tell the Rep It Was Not SignedEmails the account manager that the envelope was declined or voided and that Attio was not changed.

Field map

Where each data label on the service renewal agreement is filled from in Attio
Data label on the service renewal agreementAttio fieldStep
Customer_NameCompany / Name3
Customer_AddressCompany / Primary location: Line 1, Locality, Region3
Contact_NamePerson / Name: Full name4
Current_PlanDeal / Deal name1
Renewal_TermStart inputs renewalStart and renewalEnd: {renewalStart} to {renewalEnd}Start
Annual_FeeStart input annualFee (Currency), printed as $51,600.00Start

Written back: Deal stage = Renewed; Deal value = annualFee

Filed to: Deals / {Deal Record ID} / Signed Service Renewal from {renewalStart}

Page preview of the sample service renewal agreement, with its data label fields highlighted and filled with sample values.
Sample document for workflow testing. Have counsel review before use.
The document

A service renewal agreement that fills itself

The highlighted fields are the service renewal agreement's data labels, shown here with sample values. The field map lists where each one comes from in Attio or the start inputs. Each field sits on a hidden anchor tag, so you can use your own service renewal agreement: keep the six data labels and the workflow keeps working.

Set it up

  1. Install and connect the app

    Install Attio for Docusign IAM from the Docusign App Center and connect it to your Attio account. An account admin does this once.

  2. Import the workflow

    In Docusign, go to Agreements, Workflows, Create Workflow, then Import Workflow, and pick the .zip. When it asks, pick your Attio connection.

  3. Review each step

    The import creates the service renewal agreement template in your account and fills the steps. Check the template mapping on Prepare eSignature Template, then publish.

  4. Test with a sample record

    Run it once on a test record addressed to your own inbox, and check the write-back and the file.

Make it yours

  • Add a Renewed stage to your Attio deal pipeline, or change the stage in Mark Deal Renewed in Attio to one you have. The stage title must match exactly.
  • After the import, choose your own countersigner in Send Documents for Signature. The Account manager participant arrives with a sample email address.
  • Keep a changing value in the file name in File Upload to Attio: Attio refuses a second file with the same name on a record. The start date arrives with underscores for spaces and commas, as in February_1__2027.

Questions

Who starts the renewal?

An account manager can run it by hand with the deal's record ID, the agreed fee and the new term. Another system can start it through the API with the same four inputs, for example Baton when a deal moves to a stage in Attio.

How do I send the fee through the API?

Send annualFee as an object, for example {"currencyCode": "USD", "doubleValue": 51600}. In our tests a bare number was accepted but the run never started, and a text value such as "51600" printed on the agreement but wrote 0 to the deal value in Attio.

What if the customer declines?

Check the Renewal Was Signed sends the account manager an email instead of updating the deal. The deal keeps its stage and value, and no file is added.

Can I use my own renewal agreement?

Yes. Upload it as an eSignature template with a Customer and a Provider role, place the six data labels and the signature fields, choose it in Prepare eSignature Template and map the fields again.

The import says an app linked to a workflow step is missing.

Install and connect Attio for Docusign IAM first, then import the .zip again. Docusign does not name the missing app in that message.

Need it to match your sales process?

We adapt library workflows to your stages, approvals and documents, and build private apps when a system has no app yet.

Video, 3:03
Sales and CRM

Send an order form and mark the deal won

Fills the order form from the deal, its company and its contact, and marks the deal won once the customer signs.

Starts: API or by handTested 16 Oct 2026

Docusign is a trademark of Docusign, Inc. Attio for Docusign IAM is published by Fluidlabs. To ask us to remove a mark, email hello@fluidlabs.com.