Category Archives: Communication

Overview: Intercom lets you send custom attributes about your customers. This means that you can filter your user list and send messages when users meet criteria specific to your business.

You send custom attributes by adding it to your intercomSettings code snippet as additional key/value pairs. Make sure to double check that your custom attribute keys always have a JSON-valid value; this means double quotes around strings and sending null as a value when there isn’t a value for that user. It’s also important to note that:

1. Field names must not contain Periods (‘.’) or Dollar (‘$’) characters
2. Field values must be JSON Strings, Numbers or Booleans – Objects and Arrays will be rejected.
3. Keys cannot contain characters such as ~`!@#%^&*'{}|\'” or the NULL character.
4. Keys are case-sensitive.
5. Values cannot be nested hashes or arrays.
6. We only allow custom data attributes of string type to have up to 255 characters.

Here are some custom attribute examples:

Here are some screen shots for seeing the custom attributes in intercom.

This is a chat app you can use to catch your website visitors and convert them into customers. Engage your visitors on your website or those who use your app, and text them via chat or email. It helps to you will communicate with visitors about your website. You can clarify any questions on your website, you can immediately reply to visitors. It will boost your business growth.

Feature your brand and make a personal connection.
Personal: Show the names and faces of your team so people know there’s a real person on the other end.
Modern: Typing indicators, read receipts, stickers, GIFs, and emojis make for a friendly and fun experience.
Customizable: Match Intercom to your company’s brand to make it feel like your own.

Start live conversations with website visitors, and retain signed-up users.

Install Intercom on your website:
1. create your account or login (
2. Install Intercome
3. start your free trial –> If you are not complete this step, intercom live chat is not working.

Here’s how your free trial works:
1. You’ll get a 14 day free trial of each product, which you can start at any time.
2. After your free trial ends, Intercom’s products start at $49/month.
3. If you cancel in the first 14 days you won’t be charged.

“Install Intercome”  –> You can complete this step in setup guide section, then you will get the javascript code, take that code and put into your website pages.

How to use the code:

1. Paste the code right before the closing body tag(</body>) of every page where you want the Intercom Messenger to appear.
2. Make sure to replace ‘APP_ID’ with your app ID.
3. Open your website in your development environment to activate the code install.

In the setup guide you’ll see the code snippet you need to install. Or you can quickly grab it from here instead:

Here’s the JavaScript code:

After adding the above javascript code in your web page(.jsp/.html) then intercome live chat button appears in below right corner side of the page.

What is proxy:
A proxy server is an intermediary between your PC or device and the Internet. This server makes requests to websites, servers and services on the Internet for you. It is actually a server which helps us maintaining our privacy on the Internet. It is just like a wall between you and the Internet.
When you use a proxy, the webpage on the other side won’t be able to see you, webpage interacts with the proxy and proxy in return shows us the webpage.

A client connects to the proxy server, requesting some service, such as a file, connection, web page, or other resource, available from a different server. The proxy server evaluates the request according to its filtering rules.

A proxy server can be placed in the user’s local computer or at various points between the user and the destination servers on the Internet.


Hiding machine or other servers from public. It provides security.
To speed up access to resources (using caching). Web proxies are commonly used to cache web pages from a web server.
To open blocked sites in college schools and some times in offices.
To bypass security/parental controls.
To protect your real identity on internet.

Proxy server settings:
In twilio client library <7.x old version, we are setting the manually proxy server seetings and add host and port number.
When we are making a twilio api call through proxy server, then we need to configure our proxy host and port number in our customized class.
We are extending the twilio com.twilio.sdk.TwilioRestClient, then set proxy server settings and add host and port number.

In twilio client library (7.1.0) new version, twilio client build every thing for related the proxy server settings,
just we have to add our proxy server host and port number.

When we are making a twilio api call through proxy server, then we need to configure our proxy host and port number in our customized class.
We are extending the twilio NetworkHttpClient, then set our server host and port numbers in customized class constructor.


Add the twilio api url into your proxy server configuration file:
And make sure you will add the below url entry in squid filter and restart proxy

Twilio new client version:
Twilio new client version 7.x, follow the below code.

Twilio old client version:
Twilio old client version <=6.x, then follow the below code.


Overview: Get the available twilio phone number from your twilio account configured phone numbers using java, if there is no phone number configured in your twilio account, you can Buy a Number from your twilio account. Your account will be charged when you provision the number, and the number will appear on the Manage Numbers page in your account.

If you want to buy more than one twilio phone numbers, you must upgrade your Twilio account in order to provision additional phone numbers. Once you configured all the twilio phone numbers, then you will get any one number, and that number you will use to send SMS/MMS, make a Voice call.

The following are the types of phone numbers Twilio provides:
— Local numbers
— National numbers
— Toll free numbers
— Mobile numbers

Local numbers: Local numbers are telephone numbers which are assigned to a specific region.
These numbers are typically used by individuals, local businesses and can be considered the most general type of numbers.

use the following maven dependency or set the external jar file for the below version.

Using the below java code snippet for getting the local available twilio phone number.

National numbers: National numbers are telephone numbers which are not region-specific and were designed to be reachable from an entire country at the same cost.

Toll free numbers: Toll free numbers are telephone numbers that are free of charge for the calling party,
and are typically used by businesses when they prefer fully take on the cost of calls for their users. Similar to a geographic area code.

Note: Twilio currently provides toll free numbers in United States, Canada and United Kingdom.
In the United States and Canada, toll-free numbers are enabled for both voice and SMS messaging.
Toll-free numbers in the United Kingdom cannot yet be used to send messages.

Using the below java code snippet for getting the local phone number.

Mobile numbers: Mobile numbers are often the only type of number in the given country that can be used for sending and receiving messages.

Use the following maven dependency or add the external jar file for the below version.

Use the below java code snippet for getting the mobile number from your twilio account. Here using the

<!– [Format Time: 0 le prix du viagra au maroc.0013 seconds] –>


“ngrok” can be useful for sharing our local application website information to any one. Get some reviews of local application from remote users. Based on that reviews, we will develop a good application. Suppose if your local application running in tomcat server, then run the ngrok, it detects the tomcat server based on port number, then ngrok creates a public url. This public url access to every one.

If you are using a third party api and you want to have webhook from that third party to your application, in that case you need a public url. This public url to get access to some third party apis.

ngrok creates a secure public URL ( to a local webserver on your machine. It creates a different public url for every restart.

Save time and be more productive. Show off in-progress work for feedback and build webhook integrations with ease. Use ngrok’s unique request inspection and replay to iterate quickly.

Don’t configure port forwarding on your router or waste time setting up dynamic DNS solutions. ngrok works everywhere with no changes, even when a device changes networks.

Steps to install ngrok:
1. Download ngrok
2. On Linux or OSX you can unzip ngrok from a terminal with the following command. On Windows, just double click
Unzip – unzip /path/to/

3. Run the ngrok:
ngrok allows you to expose a web server running on your local machine to the internet. Just tell ngrok what port your web server is listening on.

If you don’t know what port your web server is listening on, it’s probably port 80, the default for HTTP.
Example: Expose a web server on port 80 of your local machine to the internet

When you start ngrok, it will display a UI in your terminal with the public URL of your tunnel and other status and metrics information about connections made over your tunnel.
See the below ngrok console UI

4. More about ngrok Features

ngrok’s Benefits:
1. In our local machine running the web server, then start the ngrok, it will give a unique url and that will be valid for until you stop the ngrok. So it saves time as you don’t have to change it on every restart of the web server.

2. It can use the service without any sign-up. Just download and install. Also it is available to everyone. If extra features needed you can buy.

3. It provides url with both http protocols (http and https)

Connect buyers and sellers through an intermediate Twilio phone number to keep personal numbers private.

See the below screenshot for the twilio voice calling flow.


Purchase a pool of phone numbers from the Twilio self-service portal or the Twilio phone number API. You can search for phone numbers with a specific country and area code.

Implement the mapping between the provisioned Twilio phone numbers and your users. In this example, xxx-xxxx is associated to Arya and Bran’s personal phone numbers for the duration of their business relationship.

When Arya calls xxx-xxxx, Twilio receives the call and makes an HTTP request to your web server. We are configure the call back url in twilio phone number configuration page.

See the below image for the voice call configuration in twilio

See the below code snippet for making a call from caller phone number to Twilio phone number.

Build some constants, see the below code snippet

Your web server looks up the private phone number of Bran associated to xxx-xxxx and returns a TwiML <Dial> to Bran’s number.

See the below code snippet for you web server make a call from twilio phone number to receiver phone number.

Output for VoiceCall XML:


Twilio connects the call between Arya and Bran. Bran sees the call coming in from xxx-xxxx.

Once call is ended, Twilio makes a GET or POST request to the ‘action’ URL if provided.

See the below code snippet for after call is ended.

Output for DialCallEnd XML:

Finally, call completed between caller and receiver.

Caller –> Twilio –> Receiver.