Overview
This tutorial shows you how to automate employment contract signing by sending contracts via SMS with Twilio when a new SharePoint List item is created. By integrating SharePoint List (for storing employee details), the SignatureAPI connector (for electronic signatures), Twilio (for sending SMS with the signing link), Outlook (for notifying HR when the contract is signed), and Power Automate (for orchestrating the workflow), you can eliminate manual errors and reduce delays in onboarding new employees.What You’ll Learn
- How to trigger a flow when a new SharePoint List item is created.
- How to retrieve and pre-fill a DOCX contract template with employee details.
- How to create and send a signature envelope via SMS using SignatureAPI and Twilio.
- How to monitor the signing process and retrieve the signed document.
- How to save the signed contract and notify HR automatically.
The Problem
HR departments often struggle with manually handling contracts, causing delays in onboarding. Common issues include:- Slow processing: Manual tasks create bottlenecks.
- Errors: Mistakes from manual data entry.
- Tracking difficulty: Challenges in monitoring signing status.
How Automation Helps
Automation simplifies this process by:- Automatically sending contracts to employees via SMS.
- Using templates pre-filled with employee details.
- Tracking signature status and storing documents automatically.
- Informing HR instantly once contracts are signed.
Requirements
Before starting, make sure you have:- Power Automate for building workflows.
- SignatureAPI account for electronic signatures.
- Twilio account for sending SMS (make sure you have a phone number that can send SMS).
- SharePoint List for storing employee details.
- Outlook for sending notifications (other email providers also work).
Flow Overview
The automation process follows these steps:- Trigger: A new SharePoint List item starts the flow.
- Data Retrieval: Get employee details and fetch the contract template from SharePoint.
- Signature Process: Create an envelope via SignatureAPI, add recipient details, and attach the contract template.
- SMS Delivery: Create a ceremony when the recipient is released, then send an SMS with the signing link via Twilio.
- Monitoring: Wait for the contract to be signed.
- Storage and Notification: Save the signed document in SharePoint and notify HR via email.
- SharePoint List flow

- Send SMS flow

- Monitoring flow

Step-by-Step Tutorial
Follow these steps to automate your employment contract process using SharePoint List, SignatureAPI, Twilio, and Power Automate.Step 1: Prepare the Contract Template
First, create or update your employment contract template by adding placeholders for dynamic fields (employee details) and defining where the employee will sign. To prepare your template:- Open your existing employment contract document (DOCX format) in Microsoft Word.
- Identify each place where employee details should be dynamically inserted (e.g., first name, last name, email).
- Insert placeholders using double curly brackets around descriptive keys. Examples:
- Employee first name:
{{employee.first_name}} - Employee last name:
{{employee.last_name}} - Employee email:
{{employee.email}}
- Define the location for the signature clearly by inserting a signature placeholder using double square brackets, e.g.:
[[employee_signature]]
Dear{{employee.first_name}}{{employee.last_name}}, Please review and sign your employment contract below:[[employee_signature]]
- Save your template.
Ensure placeholder keys match exactly with what you will use later in Power Automate. Keep your template simple and clear to avoid confusion during dynamic insertion.

Step 2: Create the SharePoint List
Create a SharePoint List to store employee details.- Visit Microsoft Lists and sign in.
-
Click New List, then click Blank List.

-
Rename the list and save it to the SharePoint Site.

- Add the following columns:
- First Name (Text)
- Last Name (Text)
- Email Address (Text)
- Phone (Text)
-
RecipientId (Text)


-
Save and publish the list.

Step 3: Set Up the Power Automate Flow
Now, create the automated workflow in Power Automate. This flow triggers whenever a new item is added to the SharePoint List.3.1 Configure the Trigger
- Go to Power Automate and select Automated Cloud Flow.
-
Name your flow, select When an item is created from the SharePoint connector, then click Create.

-
Select the Site Address and the list you created earlier.

3.2 Get File Content
- Add the Get file content using path action from the SharePoint connector.
-
Select the document from SharePoint Documents.

Step 4: Set Up the Signature Process
In this step, you will configure SignatureAPI to create, send, and track the signature process.4.1 Create a SignatureAPI Envelope
Begin by creating an envelope to hold your contract and signature process.- Add the Create an Envelope action (SignatureAPI connector).
- If prompted, authenticate your connection using your SignatureAPI key from the SignatureAPI Dashboard.
- Set an Envelope Title (e.g., employee first name) and a message using dynamic content.
-
From the advanced options, set the Envelope Topics to
twilio_agreement. This allows you to filter the other flows by this topic. You can use any string you want.
4.2 Add the Recipient
Next, specify who will receive and sign the contract.- Add the Add Recipient action from the SignatureAPI connector.
- Map Recipient Name and Recipient Email using dynamic content from the SharePoint List item.
-
Set the Recipient Key (e.g.,
employee), matching your DOCX placeholders. -
From the advanced options, set Recipient Ceremony Creation to
manual. This allows you to create a ceremony later in the flow.
4.3 Update the SharePoint List Item with the Recipient ID
- Add the Update item action from the SharePoint connector.
- Select the Site Address and the list you created earlier.
- Select the Item ID from the previous step with dynamic content.
-
Set the RecipientID to the RecipientID from the Add Recipient action.

4.4 Attach the DOCX Contract Template
Now, attach your contract template to the envelope and populate it with employee details.- Add the Add a Template (DOCX) action.
- Select File Content from the Get file content using path action.
- Select the Envelope ID from the Create an Envelope action.
- Set the Document Title (e.g., “Employment Contract”).
-
Ensure your DOCX template uses placeholders (
{{employee.first_name}}, etc.) and map each field to the corresponding dynamic content.
4.5 Define Signature Placement
Specify where the employee should sign on the document.- Add the Add a Place (Signature) action.
- Set the Document ID using dynamic content.
-
Use the placeholder (e.g.,
[[employee_signature]]) from your DOCX template. -
Set the Recipient Key using dynamic content.

4.6 Start the Signing Process
Trigger the sending of your envelope to the employee for signing.- Add the Start Envelope action from the SignatureAPI connector.
-
Select the appropriate Envelope ID using dynamic content.

Step 5: Create the Ceremony and Send SMS
Create a second Power Automate flow that triggers whenever a recipient is released from the SignatureAPI connector.5.1 Configure the Trigger
- Go to Power Automate and select Automated Cloud Flow.
-
Select When a recipient is released from the SignatureAPI connector.

5.2 Filter by Envelope Topic
-
In the trigger, set Topics to
twilio_agreement. This ensures the flow only runs for envelopes created with this topic.
5.3 Get SharePoint List Items by Recipient ID
- Add the Get Items action from the SharePoint connector.
- Select the Site Address and the list you created earlier.
-
From the advanced options, set the Filter Query to
RecipientId eq 'Recipient ID'(whereRecipient IDis the value from the trigger’s dynamic content). Also set the Top Count to1.
5.4 Get Item by ID
- Add the Get Item action from the SharePoint connector.
- Select the Site Address and the list you created earlier.
-
In the Id field, insert an expression to get the Item ID from the previous step. Use this expression:

5.5 Create Ceremony
- Add the Create a ceremony (Custom Authentication) action from the SignatureAPI connector.
- In the Authentication Provider field, set the name of the SharePoint list you are using (e.g., “Super App Tutorial”).
-
In the Authentication Data, add the following fields:
- Authentication Method: SMS
- Phone Number: The recipient’s phone number (selected from the SharePoint List item via dynamic content)
-
Set the Recipient ID from the dynamic content.

5.6 Send SMS
- Add the Send Text Message (SMS) action from the Twilio connector.
- Set From to your Twilio phone number.
- Set To to the recipient’s phone number.
-
Set Message to include the ceremony URL from the dynamic content.

Step 6: Monitor and Finalize the Contract
Create a third Power Automate flow that triggers whenever a deliverable is generated from the SignatureAPI connector. This flow retrieves the signed contract, saves it to SharePoint, and notifies HR.6.1 Configure the Trigger
- Go to Power Automate and select Automated Cloud Flow.
-
Select When a deliverable is generated from the SignatureAPI connector.

6.2 Filter by Envelope Topic
-
In the trigger, set Topics to
twilio_agreement. This ensures the flow only runs for envelopes created with this topic.
6.3 Retrieve the Signed Contract
Once the contract is signed, automatically retrieve the completed document.- Add the Get a Deliverable action from the SignatureAPI connector.
-
Select the correct Deliverable ID using dynamic content.

6.4 Save the Signed Contract to SharePoint
Save the signed document for record-keeping.- Add the Create File action (SharePoint connector).
- Select the Site Address and Folder Path.
-
Set the File Name (ending in
.pdf). -
Map File Content from the deliverable.

6.5 Notify HR via Email
Automatically inform HR that the contract has been signed and saved.- Add the Send an Email action (Outlook connector).
- Configure the email recipient (HR), subject, and message.
-
Attach the signed contract file from dynamic content. Use the File Content from the Get a Deliverable action and set the filename (ending in
.pdf).
Step 7: Test Your Automation
Finally, test the entire process end-to-end.- Save all three Power Automate flows.
- Create a new item in the SharePoint List.
- Verify the following:
- The ceremony is created successfully.
- The SMS is sent to the employee.
- The employee receives the SMS and signs the contract.
- The signed contract saves successfully in SharePoint.
- HR receives an email notification with the signed contract attached.
- Ceremony is created successfully.
- SMS is sent to the employee.
- Employee receives the SMS and signs the contract.
- Signed document stored correctly in SharePoint.
- HR receives email notification with attachment.
Troubleshooting & FAQ
Common Issues
- API Key Errors: Ensure your SignatureAPI key is correct and authenticated.
- Dynamic Content Mapping: Double-check that placeholder names in your DOCX file match exactly with the dynamic content mappings in Power Automate.
- File Access Issues: Verify permissions and file paths in SharePoint.
- SMS Not Received: Confirm your Twilio phone number is SMS-enabled and the recipient’s phone number is in the correct format.
- Ceremony Not Created: Verify that the Recipient Ceremony Creation is set to
manualin the Add Recipient action, and that the recipient ID is correctly stored in the SharePoint List.
Additional Resources
- SignatureAPI Documentation
- Microsoft SharePoint List Documentation
- Twilio Documentation
- Power Automate Community