Tasks

Introduction

Tasks allow you to automate actions within the onboarding or offboarding journey, such as sending communications, creating tickets, generating documents, or integrating with external systems.

Add new task

Here's how to add a new task:

  1. Go to the tasks within the onboarding settings.

  2. Click the "New tasks" button located at the top-right corner of the table.

  3. You'll be taken to a three-step task creation flow:

    1. Basic details: Configure the task name, identifier, type, and basic settings.
    2. Task configuration: Configure the specific settings for the selected task type.
    3. Execution: Define when and under what conditions the task should execute.

Step 1: Basic details

Configure the following basic details for the task:

  1. Task name: Enter a descriptive name for the task (required).
  2. Task identifier: Enter a unique identifier for the task (required).
  3. Description: Add an optional description to explain what the task does.
  4. Task type: Select the type of action this task will perform:
    1. Webhook: Call an external API endpoint.
    2. Form: Assign a form for the candidate to complete.
    3. Workflows: Trigger a workflow in the Workflows Studio.
    4. Ticket: Automatically create support tickets.
    5. Signature: Generate a document and send it for signature using Leena Signature.
    6. Document generation: Automatically generate personalized documents using letter templates.
    7. Notification: Send automated communications (email or bot notification).
    8. DocuSign: Initiate document signing through DocuSign integration.
  5. Trigger manually: Select 'Yes' if the task should only be triggered manually by an agent, or 'No' for automatic execution.
  6. Icon for task: Upload an optional icon to display for this task.

Step 2: Task configuration

Configure the specific settings based on the selected task type. The configuration options vary depending on the task type:

Webhook

  1. Select method: Choose the HTTP method (GET, POST, PUT, PATCH, DELETE).
  2. Enter request URL: Provide the API endpoint URL.
  3. Headers: Add request headers as key-value pairs (name and value).
  4. Params: Add URL parameters as key-value pairs (name and value).
  5. Body: Configure the request body:
    1. Add body: Select body type (None, JSON, XML, Text, Binary, URL Encoded, Form Data).
    2. JSON Payload: Enter the JSON payload when JSON is selected.
    3. XML Payload: Enter the XML payload when XML is selected.
    4. Plain Text Payload: Enter plain text when Text is selected.
    5. URL / Base64: Enter URL or base64 data when Binary is selected.
    6. URL Encoded Payload: Add key-value pairs for URL encoded data.
    7. Form Data Payload: Add key-value pairs with type (Text/File) for form data.

Form

  1. Select form: Choose the form to assign to the candidate from published forms.
  2. Auto complete on trigger: Enable to automatically mark the task as complete when triggered.

Workflows

  1. Select workflow Bot: Choose the workflow bot.
  2. Select workflow app: Choose the workflow application to trigger (depends on selected bot).
  3. Withdraw on stopping journey: Enable to withdraw the workflow if the journey is stopped.
  4. Form Fields: Map form fields required to initiate the workflow:
    1. Select form field: Choose the workflow form field.
    2. Field value: Enter the value to map (supports hybrid input with data center variables).
    3. Fallback Fields: Add fallback field values.
    4. Default value: Set a default value if the field is empty.
  5. Revise workflow on section updates:
    1. Revise workflow: Enable to revise workflow when section data changes.
    2. Type: Select revision type (Update or Withdraw & Re-submit).
    3. Section key: Select fields that trigger workflow revision.

Ticket

  1. Department: Select the department for the ticket.
  2. Category: Select the ticket category (depends on department).
  3. Sub category: Select the sub-category (depends on category).
  4. Priority: Set the ticket priority (Low, Normal, High).
  5. Description: Enter the ticket description (required).
  6. Title: Enter the ticket title.
  7. Source: Select the ticket source (Thumbs Down, Default Fallback, Explicit, Maintenance, Bulk Upload, Master, Email, Workflows, Integrations, Live Chat, Dashboard).
  8. Due date: Configure due date settings:
    1. Current date / Relative to key: Select whether to use current date or relative to a key.
    2. Add Days: Number of days to add to the due date.
    3. Key: Reference key for relative date calculation.
  9. Auto complete on trigger: Enable to automatically mark the task as complete when triggered.
  10. Re-update closed ticket: Enable to re-update tickets that have been closed.
  11. Anonymous autoTicket: Enable to create anonymous tickets (unlink channel user).
  12. Notify candidate: Enable to notify the candidate when ticket is created.
  13. Close ticket on stopping journey: Enable to close ticket when journey is stopped.
    1. State: Select the state to set (Open, Acknowledged, Blocked, Closed).
    2. Closing Comment: Add a closing comment.
  14. Form data to extract:
    1. Form identifier: Select forms to extract data from.
    2. Data to extract: Map reference keys to ticket keys with optional fallback keys, component type (String/Date), and default values.
    3. Form document to extract: Select form fields containing documents to attach.
  15. Section fields to update: Map section fields to ticket keys for updates.
  16. Auto-update form data on ticket updates: Configure automatic form data updates when ticket is updated.
  17. Extra fields: Add additional fields as JSON.

Signature

  1. Generated letter name: Name for the generated letter (required).
  2. Letter Name Date Format: Select date format for the letter name (DD-MM-YYYY, MM-DD-YYYY, DD-MMM-YYYY).
  3. Signature letter name: Name for the signed letter (required).
  4. Date Format: Select date format for the signed letter.
  5. Select template from form: Toggle to use a document from a form as the template.
    1. If disabled: Select template tag from signature service: Choose a template from the signature service.
    2. If enabled: Select form identifier and Select form document to use as template.
  6. Delete Previous: Enable to delete previous signatures when regenerating.
  7. Force Use Form Documents: Enable to always use documents from forms.
  8. Signature Information:
    1. Function name: JavaScript function name for signature processing.
    2. Height/Width: Dimensions for the signature image.
    3. Type: Image type (URL or Base64).
    4. Image Data: Direct image data.
    5. Use Default Image: Enable to use default signature image.
    6. Extension: File extension for the signature image.
    7. Select form identifier and Select Image field: Source of signature image from forms.
    8. Coordinates of the signature: Define signature placement (page number, width, height, X, Y coordinates, caption settings).
  9. Form field to update with signature: Map generated signature to form fields.
  10. Delete old in multiple generations: Enable to delete old signatures when generating new ones.
  11. Form data to extract: Configure data extraction from forms for signature processing.
  12. Import signature image to onboarding form: Map signature images back to onboarding forms.

Document generation

  1. Document name: Name for the generated document (required).
  2. Letter template tag: Select the letter template to use (required).
  3. Image data:
    1. Image form identifier: Select forms containing images.
    2. Image to extract: Configure image extraction with function name, image field, and image data properties (height, width, type, extension, image data, and fallback settings).
  4. Context function:
    1. Context function to extract data: Select forms for data extraction.
    2. Function: JavaScript function for data transformation.
  5. Import Mapping: Map generated document to form fields.

Notification

Email notification:

  1. Select template: Choose an email template.
  2. Subject: Email subject line (supports hybrid input with data center variables).
  3. Send to onboarding user: Yes/No to include the onboarding user.
  4. Users: Select additional users to receive the email.
  5. Cc: Add CC recipients.
  6. CC Params: Select section fields for dynamic CC recipients.
  7. Bcc: Add BCC recipients.
  8. BCC Params: Select section fields for dynamic BCC recipients.
  9. Schedule To Relation: Enable to send to related contacts.
  10. Relation: Select relation fields when enabled.
  11. Attachments:
    1. Upload files: Upload static attachments.
    2. Document to extract: Select form documents to attach.

Bot notification:

  1. Module ID: Enter the module ID for bot push notification.

DocuSign

  1. Email Subject: Subject line for the DocuSign email (required).
  2. Status: Select envelope status (Sent, Signed, Completed).
  3. Workflow Configuration:
    1. Workflow Steps: Define workflow steps with action, trigger on item, item ID, and delayed routing rules.
  4. Recipients Configuration:
    1. Signers: Add signers with email, name, recipient ID, routing order, email key, name key, and tabs configuration (sign here tabs, initial here tabs with anchor settings).
  5. Import Mapping: Map signed documents back to forms with identifier, document keys, document ID, and approval condition.
  6. Form Documents: Configure source documents with identifier, documents to extract, and document ID mapping.

Step 3: Execution

Configure when and under what conditions the task should execute:

Execution condition

Define conditions that must be met before the task executes. You can create complex conditions using AND/OR logic:

  1. Fields: Select the candidate field to evaluate.
  2. Condition: Choose the comparison operator (equals, equalsIgnoreCase, contains, less than, less than or equal, greater than, greater than or equal, in, not in).
  3. Value: Enter the value to compare against. For 'in' and 'not in' operators, you can add multiple values.

Use "And" to add conditions that must all be true within a group, or "Or" to add alternative condition groups.

Execution on section update

Configure the task to re-execute when specific candidate data changes:

  1. Enable: Toggle to enable re-execution on updates.
  2. Update to any value: Select fields that should trigger re-execution when updated to any value.
  3. Update field to value: Define specific field-value combinations that trigger re-execution (Key and possible Values).
  4. Execute on each update: Enable to re-execute the task every time the specified fields are updated.
  5. Evaluate Execution Condition: Enable to re-evaluate the execution condition before re-executing.

Once you're done, save the task and proceed to the settings section.

Managing existing tasks

The configured tasks will be visible in the task settings with the following columns, here are the actions which can be performed for each configured task by clicking the three-dot menu:

  1. Edit: Modify the configured task.
  2. Enable/Disable: Disable the active task to hide it. Similarly, enable the disabled task to make it visible again. This option is only available for tasks that are not in Draft status.