Automate business operations, boost business growth and increase customer satisfaction with streamlined automation.

Get Started

Try a demo

Features

Knowledge Base

Getting started

Head to Enif Website to create an account.

Usage

Check the example folder for demo, click here for live demo

Initialize your business ID, and specify environment

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
 EnifController.setBusinessId("YOUR_BUSINESS_ID", Env.dev);

  runApp(const MyApp());
}

you can set user params to automatically login user
EnifController.setUser(EnifUserParams(
      firstName: "Sade",
      lastName: "Oluchi",
      phoneNo: "0803000000",
      email: "sade@enif.com"));

##### you can set deviceToken params to automatically add device token and receive push notifications

```dart
EnifController.setDeviceToken(
      "cft5xLfER0i4PeRZEupqqp:APA91bFmWW0LuTYF7dbAm7bxEMUGkUWE8hKilLA6HTdFHu-vCTQeYCRunXkPJBnzLk3Bh27VRGCIkM3M2U7SmQHsbkK7W3Kns4kQSoG6ZhSQHU2ihjcpFSASBxeoZ3Ff6cJSGu4FIsRC"
      );


class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Enif Chat Bot',
      themeMode: ThemeMode.system,
      theme: ThemeData.light(),
      darkTheme: ThemeData.dark(),
      home: const EnifHome(showBackButton: false),
    );
  }
}

Additional information

Libraries

constants/api_urls
constants/enif_colors
constants/image_assets
constants/svg_assets
data/local/preference_store/hive_preference_store
data/local/preference_store/map_reference_store
data/local/preference_store/preference_store
data/local/preference_store/shared_preference_store
data/local/shared_preference_repository
data/remote/api_client
data/remote/enif_api
data/remote/interceptor/json_interceptor
enif
extensions/date
extensions/extensions
models/chat_session
models/enif_error
models/enif_user_params
models/faq
models/get_user_chat_model
models/models
models/send_chat_model
models/send_device_token_model
models/ticket_status
modules/chat/data/dto/init_chat_dto
modules/chat/data/dto/send_device_token_dto
modules/chat/data/dto/send_image_dto
modules/chat/data/dto/sent_chat_dto
modules/chat/repository/chat_repository
modules/chat/view_model/chat_connection_view_model
modules/chat/view_model/chat_controller
modules/chat/view_model/chat_history_controller
modules/chat/view_model/enif_controller
modules/chat/views/chat_connection_screen
modules/chat/views/chat_history_view
modules/chat/views/chat_screen
modules/chat/views/live_chat_screen
modules/chat/widget/chat_input_widget
modules/chat/widget/chat_message_widget
modules/chat/widget/image_preview_widget
modules/common/back
modules/common/chat_users
modules/common/custom_textfield
modules/common/enif_appbar
modules/common/live_chat_button
modules/faq/repository/faq_repository
modules/faq/view_model/faq_view_model
modules/faq/views/enif_help_screen
modules/faq/views/faq_list
modules/home/views/enif_home
socket/socket_repository
socket/socket_repository_web
utils/env
utils/index
utils/phone_number_formatter
utils/validator