Skip to main content
Blog
Home/

Copper CRM Introduces Docusign eSignature Integration

Author Tony Mann
Tony MannDirector of Developer Content
Summary10 min read

Copper used the Docusign eSignature Ruby SDK to let customers sign contracts and track their status directly inside the company’s online CRM solution.

Table of contents

“Docusign offered Ruby code examples that were incredibly easy to work with.”Daniel Quimper, Copper Developer

Copper, a Google Cloud–recommended CRM for G Suite, launched a new breed of CRM (Customer Relationship Management) in 2014. Copper (formerly ProsperWorks) is focused on enabling straightforward user scenarios for salespeople who just want a CRM platform that is simple, easy to use, and not cluttered with features they don’t need or want. Copper is integrated with G Suite from Google and is growing rapidly in various markets. In addition to their Docusign integration, they’ve also built integrations with popular applications such as Slack, RingCentral, QuickBooks, MailChimp, ZenDesk, Intercom, and more. Copper’s focus on enabling critical sales processes without the need to involve an IT department is finding success in the crowded world of CRM tools and applications.

Copper & Docusign: The benefits of a package deal

Sales people ultimately want to sell. Selling typically involves signing a contract. For Copper, already a Docusign partner, using Docusign to send these contracts to customers is an obvious choice. So it came as no surprise when Copper started hearing directly from their customers that they would love it if Docusign were available for them to use from within Copper. Many of Copper’s clients were already customers of Docusign and were using it in conjunction with Copper, but without a direct integration. Their request? A simple and easy way to send contracts and track contract status directly from their favorite CRM application.

Creating a Docusign integration prototype

The task of working out the details of Copper’s Docusign integration fell to Daniel Quimper, a developer in one of Copper’s engineering pods. He was involved early in the design of the Docusign integration, as the product manager and the user experience (UX) designer consulted with him on the technical capabilities of the Docusign eSignature REST API. Daniel later led the development team building the integration directly into the Copper platform.

The Copper back-end code is mostly written in Ruby on Rails, so Daniel decided to use Docusign’s free, open source Ruby SDK. The Ruby SDK, a RubyGem package, was instrumental in helping Daniel get the integration from a conceptual prototype into a real feature of Copper very quickly. Daniel has worked to integrate many popular APIs into Copper, so it was great to hear him say “Docusign offered Ruby code example that was incredibly easy to work with.”

Daniel spent the next development cycle looking into the various authentication models that Docusign supports. He decided to implement the Authorization Code Grant approach because of its enhanced security. Authorization Code Grant has an added benefit: when users see the Docusign brand on their login page, they have the extra reassurance that their information is safe and secure.

Next, Daniel used the Ruby code examples that are also provided in the Docusign Developer Center. Daniel first made sure he could run the example code the way it was provided by Docusign. That was relatively straightforward and simple based on the instructions on the Developer Center. He then moved the sample code into the Copper codebase to be used as the backbone of the integration. As he notes, “First, I used a Docusign code example and got it to work as-is. Once it was working separately, it was trivial to bring it into our codebase.”

See Daniel’s computer’s screen showing his development environment with the Docusign eSignature Ruby code examples in figure 1.

Copper developer is starting with the DocuSign eSignature Ruby code examples.

Figure 1. Copper developer is starting with the Docusign eSignature Ruby code examples.

Soldering Docusign onto Copper

Setting it up

Before customers can use Copper’s new Docusign integration, they first need to enable and configure it. The integration can be enabled in the Copper Integrations page. There they will see the Docusign tile shown in Figure 2.

Configuring Copper integrations.

Figure 2. Configuring Copper integrations.

The important thing to decide is which types of Copper CRM records (such as Opportunities, Accounts, Leads, and more) will include the Docusign UI pane and functionality. The users can also select the default recipients that will be automatically added to their Docusign envelopes in the Docusign Settings page, as shown in Figure 3.

Configuring DocuSign settings in Copper.

Figure 3. Configuring Docusign settings in Copper.

Once the users enable and configure the Docusign integration for desired CRM record types, they’re ready to start using the Docusign integration. When they open any record of the selected type inside the Copper app, users will now see a new Docusign tab on the right hand side (see Figure 4) that includes the functionality of the Docusign integration.

Interacting with the DocuSign functionality from inside a Copper CRM record.

Figure 4. Interacting with the Docusign functionality from inside a Copper CRM record.

Logging in

Copper chose to implement Docusign’s Authorization Code Grant flow, users accessing the Docusign integration will need to authenticate with Docusign the first time they access the Copper app. Copper users will be redirected to the Docusign login screen where they enter the credentials for their Docusign account (or, if their organization uses single sign-on, they can use the organization’s chosen identity provider). Once the users log in, they’ll be redirected back to Copper. During the authentication process, the access token representing their identity is stored inside the Copper database together with a refresh token that allows Copper to obtain a new access token as needed. Copper users will never need to log into the Docusign integration again, even if they use different devices or different browsers to access Copper.

Accessing Docusign functionality

When Copper users click the + icon at the right of the Docusign tab, they will see a modal pop-up dialog box (see Figure 5) that begins the process of sending a new envelope associated with the current Copper CRM record. This pop-up dialog lets users select the document(s) they wish to send for signature as well as the list of recipients (these are either signers or others who need to complete an action). These recipients are selected by default based on the Docusign integration settings, but the users can still modify the list of recipients before they send the envelope. The users can either choose documents that are stored in the Copper CRM record, upload documents from their computer or device, or retrieve them from Google Drive.

Sending a DocuSign envelope from inside Copper.

Figure 5. Sending a Docusign envelope from inside Copper.

When Copper users click the SEND TO DOCUSIGN button (see Figure 5), they’ll be redirected to Docusign’s embedded sending experience. This will let them either use an existing template, if they have set up Docusign templates that match the documents they’ve selected, or tag documents manually before sending them for signature. Tagging a document in Docusign means selecting appropriate signing elements such as signatures, initials, dates, and so on to be acted upon by the recipients. When they’ve finished sending the envelope on the Docusign side, they will be redirected back to their Copper CRM record.

Once the users have sent their documents using Docusign in Copper, they’ll see a new Docusign status record added to the Docusign tab (see Figure 6). That entry initially shows the envelope’s status as Sent, if the envelope was successfully sent from Docusign. The record will later be updated to reflect applicable envelope status changes. Copper maintains these envelope statuses for all Copper CRM records and shows the latest status in the Docusign tab of the specific Copper CRM record, so users can get updates on their contracts.

Checking the DocuSign status in Copper for a specific CRM record.

Figure 6. Checking the Docusign status in Copper for a specific CRM record.

Connect webhook magic

A Docusign envelope contains one or more documents and is sent to one or more recipients. Once all recipients finished signing the envelope, the envelope status is changed to Completed. How can the Copper integration know that an envelope is now completed? There are two ways to determine the status of a Docusign envelope. The first is to make frequent API calls to check the status of every envelope. That is what we call polling. While this approach may work, it’s inefficient, as it requires making many API calls for a single envelope status change.

The second method to determine the status of a Docusign envelope is to use Docusign’s webhook notification technology, known as Docusign Connect. Connect enables web applications to receive notifications about the status of Docusign envelopes. Daniel and his team quickly realized they needed to use Docusign Connect so that they could update the status of envelopes inside Copper without taxing system resources with polling. Daniel researched how the Docusign eSignature Ruby SDK makes API calls to create envelopes and what information is needed to have Docusign call back to the Copper webhook with the required information about these envelopes. The result is a very sleek integration that dynamically updates information inside Copper about envelope status whenever an envelope changes. If the envelope is completed, the Copper integration adds a link back to the envelope so that Copper users can view the resulting final signed document. The decision to add a link back to Docusign instead of attaching a file in Copper was made, in part, because Daniel and his team felt that the Docusign documents are private and should not be copied over from Docusign to Copper. Limited storage resources in the Copper application was another reason for this decision. The Copper team is aware that having a link may prevent users who do not have a Docusign account from viewing the signed documents. The team may consider adding a feature that downloads the completed document back to Copper in a future release of the Docusign integration.

“Extruding” future enhancements with Copper

The first version of the Docusign integration for Copper was released in June 2019, and several customers began using it in its first month. The Copper product management team is planning to collect feedback from these customers to evaluate whether the Docusign integration is meeting (or even exceeding) their expectations and what Copper may want to change in future versions. The Copper marketing team is also planning joint customer events with Docusign to increase awareness of the integration so that more customers can use it and get the benefits.

One of the early ideas for enhancements in v2 is to enable customers to choose whether to get back the completed document stored inside their Copper CRM record, or keep using the link to Docusign. That would enable non-Docusign users to view the final signed contract, as the link back to Docusign limits the capability to only Docusign authenticated users of the account.

Other possibilities for enhancements may include building an integration with Copper workflow capabilities that enable documents to be sent based on predefined criteria by the users, without the need to send documents manually using the UI.

You can try the power and flexibility of the Docusign eSignature API for yourself with a free developer account. Just visit the Docusign Developer Center and see for yourself why Copper chose the Docusign eSignature API.

Additional resources

Author Tony Mann
Tony MannDirector of Developer Content

Tony Mann has been with Docusign since 2016, helping developers integrate Docusign into their apps. He is a published author and an expert SQL developer with a passion for developer education.

More posts from this author

Related posts

  • At the Forefront of Innovation: Leading the Way with Streamlined Document Solutions
    API Success

    At the Forefront of Innovation: Leading the Way with Streamlined Document Solutions

    Author Niani Byrd
    Niani Byrd
  • The magic of Magentrix: Changing the PRM game

    The magic of Magentrix: Changing the PRM game

    Author Raileen Del Rosario
    Raileen Del Rosario
  • NAV SEAL brings Docusign eSignatures to Microsoft Dynamics SMB customers
    Author Tony Mann
    Tony Mann
The magic of Magentrix: Changing the PRM game

The magic of Magentrix: Changing the PRM game

Author Raileen Del Rosario
Raileen Del Rosario
NAV SEAL brings Docusign eSignatures to Microsoft Dynamics SMB customers
Author Tony Mann
Tony Mann

Discover what's new with Docusign IAM or start with eSignature for free

Explore Docusign IAMTry eSignature for Free
Person smiling while presenting