0
App
I created an Ai chatbot with python. How can I convert it to a dependent app
4 Antwoorden
+ 1
You need to either connect it to a website and use a converter to turn that into an app, or connect it to something like Dart.
0
Michael Odu, your question is not clear. Please mention:
1. What type of app? Web? Mobile? (iOS/Android)? Desktop (win/mac/linux)?
2. What do you mean by "AI chatbot" and how does it work?
3. Share your code.
We cannot help without proper information.
Also, these should help you posting better questions:
https://www.sololearn.com/Discuss/1316935/?ref=app
https://www.sololearn.com/Discuss/333866/?ref=app
https://www.sololearn.com/Discuss/3021159/?ref=app
0
print("with Alex v1")
print()
responses = {
"hi": "Hey there 👋, I'm Alex v1, your personal assistant. How can I be of help to you ?",
"joke": "Why don't 😆scientists trust atoms? ... Because they make up everything 😂.",
"bye": "Goodbye! 😊",
"die": "No because I not a living thing am only an AI",
"tallest":"The tallest living man is Sultan Kösen from Turkey, standing at 251 cm 8 ft 2.8 in. The tallest person in recorded history was Robert Wadlow from the United States, who was 272 cm 8 ft 11.1 in tall and died in 1940."
}
def respond(user):
user = user.strip().lower()
words = user.split()
for keyword, reply in responses.items():
if keyword in words:
return reply
return " Sorry 😅,
def main():
print("Welcome!")
print ()
while True:
user = input("You: ")
print()
if user.lower() == "bye":
print(respond(user))
0
Shihan that is the code



