Skip to main content

All Questions

Tagged with
0 votes
0 answers
77 views

How do you handle different types of responses in your chatbot with Spring AI?

How can we design a Spring AI chatbot to handle different types of responses in the same endpoint, without resorting to multiple if-else statements in the controller? What strategies, design patterns, ...
Mounir kerkena's user avatar
0 votes
1 answer
578 views

Problem exceeding maximum token in azure openai (with java)

I'm doing a chat that returns queries based on the question you ask it in reference to a specific database. For this I use azure openai and Java in Spring Boot. My problem comes here: How can I make ...
AFOX JONES's user avatar
0 votes
0 answers
539 views

Failed to load response due to okhttp3.internal.http -RealResponseBody@d35e75 - Error on Android Studio after implemented ChatGpt

Below is my code and I don't understand what could be the problem here. Please help me as I am unable to implement it any other way. Any help would be appreciated with this regard. I am basically ...
Nikhil Gupta's user avatar
0 votes
1 answer
423 views

LocalAiChatModel results into java.io.InterruptedIOException: timeout

While trying to run https://github.com/langchain4j/langchain4j-examples/blob/main/devoxx/src/main/java/_12_ChatWithDocumentsExamples.java, for for "localai" instead of "openai", by ...
Atul K's user avatar
  • 1,044
0 votes
1 answer
57 views

How do I override methods intended to return certain strings from an immutable HashMap?

I am trying to program a Java-based chatbot for an assignment. I have an abstract interface called Chatty. It has a set, immutable map of questions and answers: import java.util.HashMap; import java....
Zorro's user avatar
  • 3
0 votes
0 answers
43 views

which platform on facebook for developers to choose?

I made a chat bot for facebook messenger and now to complete I need to send it for verification (pages_messaging permission). And when submitting, I am asked to select a platform (to enter?). I don’t ...
kzrvv's user avatar
  • 1
0 votes
1 answer
117 views

For some reason selenium doesn't locate existing web elements

I'm trying to build a Whatsapp bot in java using selenium and I'm working on a function that shows on the screen the response of a recipient that got messaged by the bot earlier. I found the class &...
DGStar's user avatar
  • 27
-1 votes
1 answer
139 views

Mini java chatbot [closed]

I am new to Java and trying to make a simple mini chatbot, that answers to 3 questions with user input and if/else statement. I do not know if I am correct, but I got this far: import java.util....
KORENS's user avatar
  • 13
0 votes
3 answers
791 views

Not Getting reply From Bot while running the app on device -Using Brain Shop API Android Studio

Why is my bot not responding Not getting reply from bot while running the app on a device. I'm using Brain Shop API Android Studio in my Android Studio. It doesn't show any error, but while I am ...
groxx's user avatar
  • 11
0 votes
1 answer
983 views

A Facebook Messenger BOT With Java

I try to create a facebook messenger bot I tried Victor de la Cruz method,the code is below , and here is the origin code: https://www.codementor.io/@vcg_cruz/a-facebook-messenger-bot-m2g6wgcxb#...
liban11's user avatar
0 votes
2 answers
493 views

Java chatbot mirroring and canned responses

So I got this java chatbot program that I'm working on. Depending on what the user says, the chatbot either gives a canned response canned_phrases or a mirrored response if the user's response has one ...
cool cat's user avatar
0 votes
2 answers
319 views

Android error: AAPT: error: resource drawable/ic_bot (aka com.example.chatbot:drawable/ic_bot) not found

Getting the error in Build Output when I'm trying to run the app: ERROR:C:\Users\xxxxxxxx\AndroidStudioProjects\Chatbot\app\src\main\res\layout\bot_msg.xml:18: AAPT: error: resource drawable/ic_bot (...
Daniel_devil's user avatar
1 vote
1 answer
1k views

Discord Bot, Embed message wont send to the channel

My bot won't display the Embed message in discord. The error that it prints is below the code. It hits the if statement because I put a normal message in there and it displayed that. But the embed ...
ntxnick's user avatar
  • 13
2 votes
1 answer
514 views

Discord bot - JDAs Event Listener sending mutiple messages

I'm creating a discord bot with JDA but I'm a newbie, right now my bot is working, but it's sending multiple messages, I think it's sending one more every time I run the code, I think it's something ...
Devck - DC's user avatar
0 votes
1 answer
164 views

Get Role by Author - Discord Bot Java

Is there any way to get the roles from Author or something like this ? if (content.equalsIgnoreCase("hello")){ channel.sendMessage("Hello **" + author + "**\nAre ...
Detrua's user avatar
  • 59

15 30 50 per page
1
2 3 4 5
7