# Set External ID

### Recommended Setup:

Set this action to trigger on page load for immediate user ID association or attach it to specific user actions when appropriate.

<figure><img src="/files/1otZPThmf73MZvu8N1Cf" alt=""><figcaption></figcaption></figure>

### Steps:

1. In the Workflow tab, select Page Load or the desired user action.
2. Add the Set External ID action.
3. Set the User property to reference the current user. This unique ID will register with OneSignal, linking push notifications to this user.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.webtonative.com/website-plugins/bubble.io/onesignal-push-notification/set-external-id.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
