Skip to content

Freshchat modue for the Vue storefront to engage and delight your customers wherever they are - web, mobile and social messengers

License

Notifications You must be signed in to change notification settings

aureatelabs/vsf-freshchat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vue Storefront Freshchat module

Freshchat integration for vue-storefront, by Aureate Labs

This module helps you engage and delight your customers wherever they are - web, mobile and social messengers.

Note: Freschat registration required to use this module into your vue-storefront website. and This module is tested with the Vue storefront version 1.11

Freshchat helps you engage and delight your customers wherever they are - web, mobile and social messengers. There are several useful features with freshchat

  • Reach out wherever they are
  • Automate with bots and AI
  • Engage with proactive campaigns
  • For more feature visit freshchat

Demo

Freshchat documentation: https://developers.freshchat.com/

Installation:

1. Clone the repository

Clone the vsf-freshchat repository into your VSF installation.

$ git clone git@github.com:aureatelabs/vsf-freshchat.git vue-storefront/src/modules/freshchat

2. Add the extension config to your local VSF configuration file.

Add the following JSON config snippet into your desired config, eg. config/local.json

"freshchat" : {
  "token" : "<YOUR_FRESHCHAT_TOKEN>",
  "host": "<YOUR_FRESHCHAT_HOST>"
}

Replace the YOUR_FRESHCHAT_TOKEN & YOUR_FRESHCHAT_HOST parameter with the freshchat token & freshchat host provided by Freshchat after registration. You can find your token & host after login to your freshchat account.

Get Freshchat Script

Valid token example: "token": "dc5a7a7c-cfdd-43ae-9283-5ebb61beeeb6" Valid host example: "host": "https://wchat.freshchat.com"

3. Register the Freshchat module

Open up your ../vue-storefront/src/modules/client.ts and add the following code. Adding it inside this file the registers the extension so it can be used in your Vue Storefront.

  ...
	import { Freshchat } from './freshchat'  /* This is the module name which is we are creating */
	import { registerModule } from '@vue-storefront/core/lib/modules'

	export function registerNewModules () {
		...
		registerModule(Freshchat) /* Register created module which we created in this tutorial */
	}

4. Enjoy!

Thats it! It's easy, plug and play! If you haven't got an Freshchat already, you can create one here, there is free tier that you can use to get started: https://www.freshworks.com/live-chat-software/signup/

Customization

Replacing the Freshchat Script.

If you need to change the Freshchat script that is loaded on the page, open up the ./freshchat/index.ts file. On the freshchatSnippet function. you'll find the script provided from Freshchat, you can swap this out or extend it as required.

License

This project is licensed under the MIT License

About

Freshchat modue for the Vue storefront to engage and delight your customers wherever they are - web, mobile and social messengers

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published