How to Integrate WhatsApp Business in SwilERP
If you are using AiSensy in your business and want to integrate it with SwilERP, follow the process below. With this setup, you can effortlessly send invoices, messages, and more to customers via WhatsApp, improving communication and customer engagement.
Collect API key from AiSensy
To integrate SwilERP with AiSensy, you need to input the API key into the software.
Step: 1 Login into AiSensy Dashboard
Reference image:
Login Window
After that, you will see AiSensy's dashboard window. Here, you need to create a template and campaign for sharing via SwilERP.
Step: 2 Create Template Message
- Navigate to Manage, then select Template Message.
- Here, you need to create a template message and configure some parameters.
- This template will also be used for sharing messages with your customers.
Reference image:
Template messages window
Step: 3 Create Campaign & Set Parameters
After creating the template, you need to set up a Campaign for sharing messages on WhatsApp.
- Navigate to the Campaign section and create a campaign.
- Here, you can also set parameters and personalize your message.
Reference image:
Campaign Window
Here is an example of the created template:
Reference image:
Template Preview
Note: After creating template and campaign, you will receive an API key, which you need to add to SwilERP for integration.
How to Integrate it with SwilERP
Step 1: WhatsApp Settings
- Go to SwilERP> Tools> Send WhatsApp.
Reference image:
SwilERP Dashboard Window - Click on the WhatsApp Settings option.
- In the URL column, enter the URL provided along with the API key from AiSensy. (This is the same API key mentioned earlier.)
- In the Message column, you need to write "RequestData."
- Enter the API Key you received from AiSensy in the Password column.
- In the Attachment Path, input your SWIL Temp path.
- Click on Save button.
Reference image:
WhatsApp Setting Window Step 2: Create WhatsApp Schedule
- Go to Tools> Schedule SMS/Email.
Reference image:
SwilERP Dashboard Window - Choose Schedule For as Transaction.
- Set Schedule as WhatsApp.
- Select the Transaction for which you wish to create a schedule.
- In the Message box, first remove the default message, then add the following parameters:
Example:
{
"apiKey": "<apikey>",
"campaignName": "Invoice",
"destination": "phone2",
"userName": "SwilERP Enterprises Demo",
"media": {
"url": "<PDFLink>",
"filename": "Invoice"
},
"source": "",
"templateParams": [
"1"
],
"tags": [],
"attributes": {}
}
Save the window.
Reference image:
Note: Media link must be available in the AiSensy template for sharing messages.
Schedule Window