> For the complete documentation index, see [llms.txt](https://software-help-docs.gitbook.io/knowledge-base/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://software-help-docs.gitbook.io/knowledge-base/software-guide/memberships/magic-links-for-memberships.md).

# Magic Links for Memberships

Magic links are a great way to get contacts auto-logged into their membership area and sent to the location where courses reside. This article will go over magic links and how to use them.

**Magic Links Location**

Navigate to Sites > Memberships >  Settings > Site Details to view the domain information related to your memberships.

{% embed url="<https://lh4.googleusercontent.com/3Jdf82v3ksKleXeXMu7kC7DPPMtXFpVtslem2xn1LfIC41MO3hdy3vBnQSxeWRatGEiMBQiWVfXD7dTW_CJQRIPbJZbQGaXqU3x7DmeQ9T_Zm1FRe6p-QUofXEjksB0z5VgHIbG7lyPVCQ30NY69njk>" %}

Enter a Title, Subdomain, Support Email, and Support Phone Number. Then Click the save button on the top right and refresh the page so that the links update fully.

***Note:** These must be sent through the system in order to function properly, either in email or SMS, in automation, or in conversations. This is due to the custom values present, for example: {{contact. email}}.*

***Note:** You could provide the link to the membership area without allowing auto logging in by removing everything from the URL from the “?” symbol and after. This is a great way to get a user to the membership location.*

*Example:* [*https://Ultimaterandmembership...*](https://ultimaterandmembership.example.example.com/)

**User Link:** This link will automatically log in to someone who is signed into the application.

**Learner Link:** This link will automatically log in to someone who is a contact in the system.

***Please Note:** Auto login will only work if the contact/user has been granted access to an offer and will only give them access to the courses they were granted access to.*

**Using a Magic Link**

You can use a magic link as a hyperlink, embed it into a button, a quick text, or anything else you can think of.

Here are some examples in the template builder:

{% embed url="<https://lh4.googleusercontent.com/eGHn3kcRwpqXjobwetBEbZt9NL9oeBvR0AzsvIBLBakl6cH2uilIZ4f9kAWTFIPARvTSyl3Acc1SGLBzVJeySGX_-MlqFYraCn-0L9pg5OZNTSql4gr_MekIaqTLRF5OaAv_gqJMMPos5P5P2DJhMrc>" %}

{% embed url="<https://lh5.googleusercontent.com/cx-LAFKTFadQQn60RMggwJ3WewKDiMrbP2l5J0McDbgvCLIwBRHHTql5wmMK5tIcwf2ri6a3TnTQjaAoQlLCILwO0fn6mYSKh99fulNErcIXJwONYa6JqhjR2MtFOmOExwULwO9ZmGIiQRrpGgEKtTc>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://software-help-docs.gitbook.io/knowledge-base/software-guide/memberships/magic-links-for-memberships.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
