# Create DialogFlow credentials

To integrate your chatbot with various services or platforms, you need to create credentials in DialogFlow. This process will allow you to authenticate and manage your chatbot's access securely. Follow the steps below to create these credentials.

## Steps to create credentials

1. **Access DialogFlow**:
   * Open an incognito browser window.
   * Visit [DialogFlow](https://dialogflow.cloud.google.com/) and sign in with the email and password of the agent you wish to manage.
2. **Agent configuration**:
   * In DialogFlow's interface, go to the settings gear (`⚙️`) next to the agent's name.
   * In the "General" tab, click on the link next to the project ID to go to Google Cloud Platform.
3. **IAM administration**:
   * On Google Cloud Platform, select "IAM & Admin" from the left-hand navigation menu.
   * Click on "Service accounts".
4. **Create a service sccount**:
   * Press the "Create Service Account" button.
   * Fill in the required details:
     * **Service account name**: Assign a name that clearly identifies the purpose of the account.
     * **Description**: Provide a brief description for future reference.
5. **Role assignment**:
   * In the search field, type "Dialogflow" and select the appropriate roles you need to assign to your service account, in this case, "DialogFlow API Administrator".
6. **Key creation**:
   * Go to the "Keys" section of the service account you just created.
   * Choose "Add Key", then "Create new key" by selecting the "JSON" format.
   * Click "Create", and a JSON file will automatically download to your computer containing the necessary credentials for your bot.

## Important

* Store the JSON file in a secure location, as it contains essential information for your chatbot's authentication.
* Do not share this file or expose it in public repositories, as it could compromise the security of your application.

With these credentials, your chatbot will be ready to interact securely with services that require authentication through DialogFlow.


---

# 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.1millionbot.com/create-credentials-dialogflow.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.
