> For the complete documentation index, see [llms.txt](https://better-wizard.gitbook.io/lead-connector-wizard/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://better-wizard.gitbook.io/lead-connector-wizard/crm-wp-communication/create-a-new-wp-user-from-workflow.md).

# 10.1 Create a new WordPress user from Workflow

Let's see how to create a new WordPress user directly from a workflow. There are 2 ways to do this.&#x20;

1. Install our pre-built snapshot: You need to install our membership snapshot using this link: [membership snapshot](https://affiliates.gohighlevel.com/?fp_ref=spiritual-acceleration-42\&share=MTZVC2JjL7Yk01JC7V2k). When you install this snapshot, you will get a workflow folder named M**embership Website Workflows (WP)**. Inside this folder, you will find a few workflows, including one named **Create a new WordPress user**. In the Settings->Custom Value section, you will find a custom value named **membership\_wp\_website\_link**. *<mark style="background-color:yellow;">You must update the value of this 'custom value' to your website URL.</mark>* You need to set your workflow trigger to control when the new WordPress user will be created. you can follow the screenshot in the next section.
2. Create a workflow for this: Create a workflow, configure the **trigger,** set the webhook with the POST method, set the destination URL to your website link, and add a custom data parameter **lcw\_create\_wp\_user** with the value **1.** Please follow the 2 screenshots:

Screenshot 1: The Workflow

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

Screenshot 2: The webhook settings

<figure><img src="/files/5IvW1AnN4EgQLmIPCnqZ" alt=""><figcaption></figcaption></figure>

**The webhook:** you need to set up a webhook that sends the data of a contact to your website. In this webhook, set the **METHOD** to POST, the **URL** to your website URL(you can directly paste your website URL, we recommend creating a custom value and adding the custom value instead of the direct URL), and finally the custom data parameter **lcw\_create\_wp\_user** with the value **1.** This will create a new user in WP with the following data

1. username: Email Address
2. email: Email Address
3. password: GHL contact ID

Now, you can send login credentials to your customers; however, we strongly recommend providing them with an auto-login link that redirects to a password reset page. The auto-login feature is explained in detail in Article 10.2.
