whatsapp_chatbot 0.0.3
whatsapp_chatbot: ^0.0.3 copied to clipboard
whatsapp_chatbot is a powerful fully customizable chatbot you can add to your flutter project for all plaftorms
ikChatBot Flutter Package
The ikChatBot Flutter package provides an easy way to integrate a customizable chatbot into your Flutter applications. This package allows you to quickly add a chat interface with interactive responses and user-friendly configuration options. With ikChatBot, you can enhance user engagement and provide automated assistance through a chat-based interface.
Features #
Getting started #
whatsapp_chatbot Package #
The whatsapp_chatbot package provides a customizable chatbot widget for Flutter applications. This widget allows you to easily integrate a chatbot into your app with various customization options.
Features #
- Customizable chatbot appearance
- Customizable chat bubble colors
- Initial greeting and default responses
- Placeholder for user input
- Easy integration into Flutter apps
- Use Bot typing.. features
- Make direct calls
- Chat directly on whatsapp
Whether you're building a customer support app or just looking to add some interactivity to your application, ikChatBot can help you create a dynamic chatbot experience tailored to your needs.
Getting Started #
To use this package, add whatsapp_chatbot to your pubspec.yaml file:
dependencies:
ikchatbot: ^0.0.3
Import the package to your screen
import 'package:whatsapp_chatbot/whatsapp_chatbot.dart';
Copy and Paste this function to use the features of the plugin
final config = Config(
botDelay: 3,
waitText: 'Bot Thinking...',
defaultResponseMessage: "Sorry! I didn't catch that!\nPlease try again!",
keywords: ['hello', 'hi', 'how are you',],
response: [
'Hi\nHow can I assist you today?',
'Hello!\nHow can I be of help?',
'I am doing great!',
],
greetings: "Hi there👋🏾\nHow can I help you?",
headerText: 'Iksoft Technologies',
subHeaderText: 'Online',
buttonText: 'Start Chat',
buttonColor: const Color.fromARGB(255, 73, 4, 4),
chatIcon: const Icon(Icons.person),
headerColor: const Color.fromARGB(255, 73, 4, 4),
message: 'Hello! This is a direct WhatsApp message.',
phoneNumber: '+233550138086',
chatBackgroundColor: const Color.fromARGB(255, 238, 231, 223),
onlineIndicator: const Color.fromARGB(255, 37, 211, 102),
);
Full Example on how to use this plugin
import 'package:flutter/material.dart';
import 'package:whatsapp_chatbot/whatsapp_chatbot.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: HomePage(),
);
}
}
class HomePage extends StatefulWidget {
const HomePage({super.key});
@override
State<HomePage> createState() => _HomePageState();
}
class _HomePageState extends State<HomePage> {
final List<String> keywords = [];
final config = Config(
botDelay: 3,
waitText: 'Bot Thinking...',
defaultResponseMessage: "Sorry! I didn't catch that!\nPlease try again!",
keywords: ['hello', 'hi', 'how are you',],
response: [
'Hi\nHow can I assist you today?',
'Hello!\nHow can I be of help?',
'I am doing great!',
],
greetings: "Hi there👋🏾\nHow can I help you?",
headerText: 'Iksoft Technologies',
subHeaderText: 'Online',
profileImage: 'profileImage',
buttonText: 'Start Chat',
buttonColor: const Color.fromARGB(255, 73, 4, 4),
chatIcon: const Icon(Icons.person),
headerColor: const Color.fromARGB(255, 73, 4, 4),
message: 'Hello! This is a direct WhatsApp message.',
phoneNumber: '+233550138086',
chatBackgroundColor: const Color.fromARGB(255, 238, 231, 223),
onlineIndicator: const Color.fromARGB(255, 37, 211, 102),
);
@override
Widget build(BuildContext context) {
return Scaffold(
body: Stack(
children: [
WhatsappChatBot(
settings: config,
)
],
));
}
}
Additional information #
To find more information, check out the package documentation.
Contributions are welcome! If you'd like to contribute to this package, please submit issues or pull requests on GitHub.
If you encounter any issues or need support, feel free to file issues on GitHub or contact us at aduamahdaniel16@gmail.com.
Our team will do their best to respond promptly to issues and inquiries.