Skip to content

MukulParasar/chatbot-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 WhatsApp Chatbot Backend Simulation

This project is a simple backend simulation of a WhatsApp chatbot built using Java Spring Boot.

🌐 Live Demo

https://chatbot-api-production-89cd.up.railway.app/webhook


🚀 Features

  • REST API endpoint /webhook to receive messages

  • Accepts JSON input simulating WhatsApp messages

  • Responds with predefined replies:

    • Hi → Hello
    • Bye → Goodbye
    • How are you → I'm a chatbot built with Spring Boot, and I'm doing great!
  • Logs all incoming messages in the console


🛠️ Tech Stack

  • Java
  • Spring Boot
  • Maven

📡 API Endpoint

POST /webhook

Request Body

{
  "message": "Hi"
}

Response

{
  "reply": "Hello"
}

▶️ How to Run Locally

  1. Clone the repository:
git clone https://github.com/your-username/chatbot-api.git
  1. Navigate to the project:
cd chatbot-api
  1. Run the application:
mvn spring-boot:run
  1. Test using Postman:
http://localhost:8080/webhook

🧪 Example Responses

Input Output
Hi Hello
Bye Goodbye
How are you I'm a chatbot built with Spring Boot, and I'm doing great!

📌 Author

Mukul

About

WhatsApp chatbot backend simulation using Java Spring Boot with REST API, predefined responses, logging, and live deployment on Railway.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages