> ## Documentation Index
> Fetch the complete documentation index at: https://help.dingtalk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Automatic shift matching

> Learn about automatic shift matching in DingTalk Attendance: Admins don't need to schedule shifts in advance. The system automatically matches the closest shift based on the configured matching method and employees' actual clock-in times, with flexible review and edit options.

## 1. Feature overview

Automatic shift matching is a brand-new, simple, and flexible attendance scheduling method. It does not require the attendance administrator to manually schedule shifts in advance. Instead, DingTalk Attendance automatically matches the closest shift based on the matching method configured by the Admin and the actual clock-in time of Organization Users. Admins can also review and edit the results as needed.

## 2. Applicable scenarios

* The Admin has not scheduled shifts for Employees in time, or has forgotten to do so.

* You do not need to manually schedule shifts for Employees, but still need to track their attendance.

## 3. How to configure

<Note>
  **Notes:**

  1. Only shift-based attendance groups support automatic shift matching.

  2. Automatic shift matching applies only when no shift has been scheduled. If the Admin has already scheduled a shift, the scheduled shift for the day takes precedence.
</Note>

* **Mobile:** Open **Mobile DingTalk > Workbench > Attendance > Settings >** tap the **shift-based attendance group > Edit attendance group > Attendance type >** select **Automatic shift matching**.

<Frame caption="Configuring automatic shift matching on mobile">
  ![Automatic shift matching setting on mobile DingTalk](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/XNkOM5r2dYKBgOY7/img/0d3ca4cc-b05f-4769-a301-4316ea55c410.png)
</Frame>

* **Desktop:** Open **Desktop DingTalk > Workbench > Attendance > Attendance group management >** select the **shift-based** attendance group **> Edit >** Attendance time **Settings >** select **Automatic shift matching**.

<Frame caption="Configuring automatic shift matching on desktop">
  ![Automatic shift matching setting on desktop DingTalk](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/XNkOM5r2dYKBgOY7/img/ecc74de0-d73c-4f3e-ad83-235cc3a91797.png)
</Frame>

## 4. View or edit matching results

* **Mobile:** Open **Mobile DingTalk >** Chats page > find the **Work Notifications** for the corresponding Organization > locate the matching Date to **view or edit** the automatically matched shift.

<Frame caption="Viewing or editing matching results on mobile">
  ![Shift matching results in Work Notifications on mobile](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/XNkOM5r2dYKBgOY7/img/8ce5088a-56ed-4198-8c49-7ba5f105aa7f.png)
</Frame>

<Note>
  **Notes:**

  Only results from automatic shift matching are displayed. Shifts manually scheduled by the Admin and shifts selected by Employees are not shown.
</Note>

* **Desktop:** Open **Desktop DingTalk > Workbench > Attendance > Scheduling management >** select the corresponding **attendance group > Shift matching** to view results, or click the **pencil icon** next to the Organization User to **edit the shift**.

<Frame caption="Viewing or editing matching results on desktop">
  ![Shift matching results in Scheduling management on desktop](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/XNkOM5r2dYKBgOY7/img/4b0ee1ab-02cd-4ca0-8a3e-9a9e2fefc97f.png)
</Frame>

<Note>
  **Notes:**

  Only results from automatic shift matching are displayed. Shifts manually scheduled by the Admin and shifts selected by Employees are not shown.
</Note>

## 5. FAQ

<AccordionGroup>
  <Accordion id="q1" title="If both automatic shift matching and employee-selectable shift clock-in are enabled, which takes precedence?">
    When both **Automatic shift matching when no shift is scheduled** and **Employees can select a shift to clock in when no shift is scheduled** are enabled: if a User selects a shift before clocking in, the selected shift time applies. If the User clocks in without selecting a shift, the system automatically matches the closest shift based on the clock-in time.
  </Accordion>

  <Accordion id="q2" title="Who can receive shift matching result notifications?">
    Only the primary owner of the attendance group and sub-owners with scheduling Permissions can view automatic shift matching results through Work Notifications.
  </Accordion>

  <Accordion id="q3" title="How do I turn off attendance reminders for automatic shift matching?">
    Automatic shift matching results are pushed automatically, and disabling this notification is not currently supported.
  </Accordion>

  <Accordion id="q4" title="Why does the message &#x22;Automatic shift matching periods overlap. Please modify the automatic shift matching period&#x22; appear?">
    If you see the message "Automatic shift matching periods overlap. Please modify the automatic shift matching period" when selecting participating shifts in a Custom matching period, check whether the selected shifts have overlapping time ranges.
  </Accordion>
</AccordionGroup>
