---
schema_version: "1"
id: d498f6e40aa0ae76b3c83061697c2d1f6f230e651d498f0cf77320bb30ea09e2
title: Set Up the Basic Bot Client
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/bot-api/einstein-bot/guides/sdk/sdk-basic-bot-client-set-up.md
canonical_url: https://developer.salesforce.com/docs/service/einstein-bot-api/guide/sdk-basic-bot-client-set-up.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9a799697ef377f15718598f304af93140e61d62ecc17680832599c5223655e23
products:
  - Einstein Bots API and SDK
  - Enstein Bot API and SDK
---
# Set Up the Basic Bot Client

First, create an instance of the basic bot client.

```java
// Create a JWT Bearer authentication mechanism.
AuthMechanism oAuth = JwtBearerOAuth.with()
    .privateKeyFilePath(privateKeyFilePath)
    .loginEndpoint(loginEndpoint)
    .connectedAppId(connectedAppId)
    .connectedAppSecret(secret)
    .userId(userId)
    .build();

// Create a basic bot client.
BasicChatbotClient client = ChatbotClients.basic()
    .basePath(basePath)
    .authMechanism(oAuth)
    .build();
```

The `basePath` is the runtime URL that you configured in the [Set Up the Dependency and Configuration Variables](https://developer.salesforce.com/docs/service/einstein-bot-api/guide/sdk-set-up.md) section.

Then create a `RequestConfig` object and add the bot ID, org ID, forceConfig endpoint configuration variables.

```java
RequestConfig config = RequestConfig.with()
    .botId(botId)
    .orgId(orgId)
    .forceConfigEndpoint(forceConfigEndPoint)
    .build();
```
