# Setup & Build

Initiate the initiators using Plugin

Step 1 - Go to terminal and login using "plugin admin login"

```
plugin admin login
```

use the credential (email id & password) set during plugin node installation

Step 2 - Create&#x20;

```
plugin initiators create <NAME> <URL>
```

**`NAME`**: The name you want to use for your external initiator.**(You now can use `xdc` as an initiator in your jobspec.)**\
\&#xNAN;**`URL`**: The URL of your jobs endpoint. ie: `http://localhost:8080/jobs`

This will give you the environment variables you need to run your external initiator. Copy the output. It will look something like this:

```
║ xdc  ║ http://localhost:8080/jobs ║ b4846e85727e46b48889c6e28b555696 ║ enNfNhiiCTm1o6l+hGJVfCtRSSuDfZbj1VO4BkZG3E+b96lminE7yQHj2KALMAIk ║ jWt64+Q9benOf5JuGwJtQnbByN9rtHwSlElOVpHVTvGTP5Zb2Guwzy6w3wflwyYt ║ 46m38YkeCymYU0kr4Yg6x3e98CyAu+37y2+kMO2AL9lRMjA3hRA1ejFdG9UfFCAE
```

Create a `startEI.sh` file in the `external-initiator` folder with the following contents:

Be sure to save these values, since the secrets cannot be shown again.&#x20;

```
export EI_DATABASEURL=postgresql://$USERNAME:$PASSWORD@$SERVER:$PORT/$DATABASE
export EI_CHAINLINKURL=http://localhost:6688
export EI_IC_ACCESSKEY=<INSERT KEY>
export EI_IC_SECRET=<INSERT KEY>
export EI_CI_ACCESSKEY=<INSERT KEY>
export EI_CI_SECRET=<INSERT KEY>
external-initiator "{\"name\":\"xdc\",\"type\":\"xinfin-mainnet\",\"url\":\"https://plirpc.blocksscan.io\"}" --chainlinkurl "http://localhost:6688/"
```

Plugin external-initiator can be started using below command

```
pm2 start startEI.sh
```


---

# 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.goplugin.co/external-initiators-deprecated/setup-and-build.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.
