Quick Installation¶
This guide explains how to quickly set up the plugin to try it for the first time, skipping additional configurations (not suitable for production).
1. Prerequisites¶
Before you begin, ensure you have the following installed on your system:
Git
Python: 3.12+
Docker
2. Install the plugin on the Jenkins instance¶
Go in Manage Jenkins > Plugins > Available Plugins, search for “AI Chatbot to Guide User Workflow”. Select it and click the button “Install”.
3. Clone the Repository¶
Open your terminal, navigate to the folder where you want to save the project, and run the following command:
git clone https://github.com/jenkinsci/user-guide-ai-chatbot-plugin
5. Configure environment file¶
Create a copy of the .env.prod.example file in the backend folder and name it .env.prod Change the following vars:
########### JENKINS ############
JENKINS_URL="http://localhost:8080/jenkins" # Url of the jenkins instance
JWT_SECRET_KEY="your-secret-key"
########### AGENT ############
ROUTER_LLM_PROVIDER="groq"
ROUTER_LLM_MODEL_NAME = "gpt-oss-20b"
ROUTER_LLM_BASE_URL = "https://api.groq.com/openai/v1/"
ROUTER_LLM_API_KEY = "your-secret-key"
FINAL_LLM_PROVIDER="groq"
FINAL_LLM_MODEL_NAME = "gpt-oss-20b"
FINAL_LLM_BASE_URL = "https://api.groq.com/openai/v1/"
FINAL_LLM_API_KEY = "your-secret-key"
# ... rest unchanged
6. Setup in Jenkins¶
Go in Manage Jenkins > System, scroll until you find the section “AI Chatbot Settings”.
Set the following vars:
Backend URL -> has to be the url of the FastAPI backend server, if hosted on the same machine set “http://127.0.0.1:8000/”.
API Key Credential -> has to be the same value of the JWT_SECRET_KEY env var
7. Run the project¶
Execute the following command:
cd backend
python run.py prod
8. Restart Jenkins¶
Now restart Jenkins, you should be able to see the button to open chatbot panel at the bottom right of the screen.
