For the complete documentation index, see llms.txt. This page is also available as Markdown.

Seeker Onboarding

OAN Seeker Onboarding

1) Clone and configure bharat-oan-api

git clone https://github.com/kanakkshk-deloitte/bharat-oan-api

cd bharat-oan-api

cp .env.example .env

Update BEDROCK_API_KEY in the .env file.

For OpenAI, update the below keys in .env

LLM_AGRINET_MODEL_NAME=gpt-4.1-mini

LLM_MODERATION_MODEL_NAME=gpt-4.1-mini

LLM_PROVIDER=openai

OPENAI_API_KEY=**

Generate JWT keys:

openssl genpkey -algorithm RSA -out jwt_private_key.pem -pkeyopt rsa_keygen_bits:2048

openssl rsa -pubout -in jwt_private_key.pem -out jwt_public_key.pem

Start the services:

docker compose up -d

If you modify any code, use the below command to rebuild and restart the docker container

cd bharat-oan-api

docker compose up -d --force-recreate --build


2) Clone and start OAN UI

Repository:

Update the publicKeyPEM value in src/contexts/AuthContext.tsx with the contents of jwt_public_key.pem generated in the previous step.

docker build -t oan-ui -f Dockerfile.local .

docker run -d --network beckn_network -p 3004:3004 --name oan-ui oan-ui

Open the UI in the browser:

Configure an Nginx reverse proxy to make the above UI accessible via a domain name.


3) Update and run mock-bpp-provider

This repository was cloned earlier, pull the latest changes first:

cd mock-bpp-provider

git pull

Build the image:

docker build -t sample-weather-provider .

Restart the container:

docker stop weather-provider

docker rm weather-provider

Run the provider again:

docker run -d --name weather-provider \

--network beckn_network \

-p 3002:3000 \

-e CALLBACK_URL=http://bpp-onix-adapter:8081/bpp/caller/on_search \

-e BPP_ID=bpp-network \

-e BPP_URI=http://bpp-onix-adapter:8081/bpp/caller \

sample-weather-provider


4) Update Beckn ONIX routing

Edit:

beckn-onix/config/local-simple-routing-BAPReceiver.yaml

Set the target URL to:

target:

url: http://sva_app:8000/api/bap-webhook

And restart the bap onix adapter:

docker restart bap-onix-adapter


5) Test from the UI

Use this query in the UI:

<below query is to test within kenya>

what is the current weather at latitude:1.2921 longitude:36.8219

<below query to test within india>

what is the weather at latitude 12.9716° N and longitude 77.5946° E ?

6) Checklist

Status

Task

Verification

☐

Clone the bharat-oan-api repository

Repository cloned successfully

☐

Create .env

.env.example copied to .env

☐

Configure BEDROCK_API_KEY

Valid API key added

☐

Generate JWT private key

jwt_private_key.pem created

☐

Generate JWT public key

jwt_public_key.pem created

☐

Start backend services

docker compose up -d completed successfully

☐

Verify backend containers

docker ps shows all services running

☐

Clone the OAN-UI repository

Repository cloned successfully

☐

Create .env.local

.env.example copied to .env.local

☐

Install UI dependencies

npm install completed successfully

☐

Start the UI

npm run dev executed successfully

☐

Verify UI accessibility

http://localhost:3004 opens successfully

☐

Pull latest mock-bpp-provider changes

git pull completed successfully

☐

Build Weather Provider image

sample-weather-provider image created

☐

Stop existing Weather Provider

Existing container stopped

☐

Remove existing Weather Provider

Existing container removed

☐

Start new Weather Provider container

Container starts successfully on beckn_network

☐

Verify Weather Provider logs

No startup errors in docker logs -f weather-provider

☐

Update beckn-onix/config/local-simple-routing-BAPReceiver.yaml

Target URL updated to http://sva_app:8000/api/bap-webhook

☐

Restart ONIX adapter (if required)

Updated routing configuration loaded

☐

Verify ONIX adapter logs

No routing or configuration errors

☐

Open the OAN UI

UI loads without errors

☐

Execute test query

what is the current weather at latitude:1.2921 longitude:36.8219

☐

Verify AI response

Weather response is returned successfully

Last updated