# Sources

You need to know from which of your links members are coming?&#x20;

<figure><img src="/files/bWtop7MLFim91RQ0bVPz" alt=""><figcaption></figcaption></figure>

The source system is made for you !

This feature allows to link invite codes to an human friendly name, for better traffic understanding

## List existing sources

![](/files/Bhw7d2XXKLhAwOXMyZSs)

You can list existing sources with the **/sources list** command

## Show sources graph&#x20;

***⚡ NEW: You can now access to a nice source chart***

![](/files/GTu8MRMKhHKZtmFBJQ56)![](/files/OC1wLqcZmnGV3n3MOzl4)

You can get an overview of your sources with the **/sources stats** command

## Setup sources

Example: You need to post your server invite link on your twitter bio and you want to know who comes from this link.

{% hint style="danger" %}
You need to create an unique invite code for each sources.
{% endhint %}

#### 1- Create your source&#x20;

Firstly you have to create an invite link which will be dedicated to this source.&#x20;

Then run the `/sources add <name:SourceNameHere> <code:inviteCodeHere> <give-role: yes | no> [description:Description of the source]`&#x20;

{% hint style="info" %}
If you've chosen to give a role, please ensure the bot has correct permissions to manage roles and its own role is higher than the role to give
{% endhint %}

#### 2- Setup the source in your join message

Edit your join message to add the `{sourceMessage}` placeholder which will be replaced by the source message&#x20;

![](/files/-MX7cw24uRzabtEICOz3)

![The result](/files/-MX7dFSudlDNHQ70fnyB)

#### 3- (optional) Edit the sourceMessage

To edit the default sourceMessage, you can use the `/sources setMessage` and click on the pen.


---

# 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.invitelogger.me/premium/features/sources.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.
