# 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.


---

# 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://better-wizard.gitbook.io/lead-connector-wizard/crm-wp-communication/create-a-new-wp-user-from-workflow.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.
