whatsapp_chatbot 1.0.0 copy "whatsapp_chatbot: ^1.0.0" to clipboard
whatsapp_chatbot: ^1.0.0 copied to clipboard

whatsapp_chatbot is a powerful fully customizable chatbot you can add to your flutter project for all plaftorms

whatsapp_chatbot Flutter Package

The whatsapp_chatbot 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 whatsapp_chatbot, you can enhance user engagement and provide automated assistance through a chat-based interface.

Features #

thumbnail

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
  • Welcome Screen to accept Full Name, Email and Message
  • Bot Animation

Whether you're building a customer support app or just looking to add some interactivity to your application, whatsapp_chatbot 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:
  whatsapp_chatbot: ^1.0.0

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.

6
likes
100
points
31
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

whatsapp_chatbot is a powerful fully customizable chatbot you can add to your flutter project for all plaftorms

License

MIT (license)

Dependencies

flutter, font_awesome_flutter, lottie, shared_preferences, url_launcher

More

Packages that depend on whatsapp_chatbot