This example shows how to integrate a conversational AI with Camel capabilities. In particular, we'll leverage the camel-whatsapp component, so that the conversational AI can be easily integrated with whatsapp.
In this example LangChain4j is integrated with openapi and the Apache Camel contributing guide is ingested as an embedding, once the application is started a conversation with the model can be done via WhatsApp.
The hardest part is WhatsApp and OpenAI configuration, but the following guides can be followed:
- Camel WhatsApp Component
- langchain4j Getting Started
- Webhook Configuration
- To test the webhook locally ngrok can be used
and the application.properties file has to be updated accordingly.
Once everything is set up execute the following command
mvn package spring-boot:run
and initiate the conversation on WhatsApp