> For the complete documentation index, see [llms.txt](https://limechatai.gitbook.io/limechat-product-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://limechatai.gitbook.io/limechat-product-guide/whatsapp-marketing/flows/action-nodes/update-users-wa-opt-in-status.md).

# Update User’s WA Opt-in Status

**Node Name:**\
Update User’s WA Opt-in Status

***

**What it does:**\
Updates the user’s WhatsApp opt-in consent status in the system. This determines whether the business is allowed to send WhatsApp messages to the user.

***

**When to Use:**

* When capturing user consent for WhatsApp communication<br>
* After a user explicitly opts in or opts out<br>
* During compliance flows (e.g., GDPR/WhatsApp policy adherence)<br>
* When syncing opt-in status from external systems or user actions<br>

***

**UI Inputs:**

* **Opt-in Status (Value)**
  * **Type:** Dropdown (enum)<br>
  * **Required:** Yes<br>
  * **Description:** Select the user’s WhatsApp opt-in status<br>
  * **Options:**
    * `true` → User has opted in<br>
    * `false` → User has opted out<br>
    * `unknown` → Opt-in status is not known<br>
  * **Special Behavior:**
    * Must be explicitly selected (no default)<br>
    * Directly updates the stored user consent property<br>

***

**Outputs:**

* **successful**
  * **Type:** Boolean<br>
  * **Meaning:**
    * `true` → Opt-in status was successfully updated<br>
    * `false` → Update failed<br>

***

**Requirements:**

* **Supported Events:** All events<br>
* **Required Integrations:** None<br>

***

**Notes:**

* This node updates a system-level user property tied to WhatsApp compliance<br>
* Critical for ensuring messaging is only sent to users with valid consent<br>
* Typically used before sending outbound messages or campaigns<br>
* “unknown” can be useful in flows where consent is yet to be determined
