{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":21024,"path":"integrate-applications/integration-hub/automate-docusign-ondemand.md","title":"How to automate on-demand signing requests","bundle":null,"doc_type":null,"release":"australia","body":"\n# How to automate on-demand signing requests\n\nSend Docusign on-demand signing requests using information in your ServiceNow instance by creating flows in Flow Designer.\n\n## Before you begin\n\n-   Request Integration Hub subscription\n-   Activate Docusign spoke\n-   Role required: admin\n-   [Set up Docusign eSignature spoke using JWT grant](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/integration-hub/setup-docusign-jwt.md) or [Set up Docusign eSignature spoke using authorization code grant](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/integration-hub/setup-docusign-authorization-code.md)\n\n## About this task\n\n**Note:** Customize flows in Flow Designer based on your requirements.\n\n## Procedure\n\n1.  In Workflow Studio, create a flow.\n\n2.  Specify **TRIGGER** to initiate the flow.\n\n3.  Specify one of the following actions to be performed during the flow:\n\n    -   **Send Adhoc Signature Request To User**\n    -   **Send Adhoc Signature Request To Users - Inline**\n4.  To pause the flow until the specified document is signed or rejected, select the **Wait for Signature from Docusign** action.\n\n5.  Perform one of the following set of actions:\n\n    -   To send an embedded signing URL, select **Use Embedded Signing**, and **Embedded Signing Recipient \\[User\\]**.\n    -   To send a document for signing, provide details regarding Docusign account, PDF document, recipient, email, and envelope expiry.\n    -   The selected document or Embedded Signing URL is sent to the recipients for signing. While signing the document, the recipient details are auto-populated.\n    -   An envelope record is created in the **Envelopes** table. The Envelope status and other details are updated.\n\n"}}