Apr

Building Facebook Messenger chatbot: what they forgot to tell you.

                                     

There are lots of written tutorials and online videos on this subject.

Yet many of them omit important details of the bot building process. These details may vary from one user to another and are difficult to describe in a unilateral fashion. Consequently it is easier for tutorial writers not to mention them at all. We try here to fill the gap and provide some additional clarity.

1. Creating Facebook app.

One of the first steps in building a Facebook Messenger bot is creating a Facebook App. It requires a business Facebook page. This might seem obvious to avid social users yet worth mentioning: a business Facebook page can only be created from a personal Facebook page. If you already have a business Facebook page move on to the next step. If you have a personal Facebook page go on and create a business page. If you are among the lucky ones that live without Facebook presence now is your chance to become like everybody else.

2. Getting SSL certificate.

Next you need to setup a webhook. Your web application is hosted on a web server and the webhook’s role is to establish connection between Facebook and your web application via your web server. In order for the webhook to work you need SSL certificate because Facebook supports only secure connections (HTTPS) to external web servers. So first, you need to purchase it. The costs change from one company to another but it is important to buy a reliable certificate otherwise Facebook might reject it. All major ISP companies offer SSL products. Second, you need to install it on your web server. The installation process can be tricky. Sometimes you can get technical help from the ISP company that sold you the certificate (as a rule of thumb, the bigger the brand the better their technical support is supposed to be. But the cost may be higher too). You can also rely on popular tools, such as keytool command utility, assuming you know how to use them. In any case, it might be a good idea to allocate several days, up to a week, for this step when planning your project.

3. Choosing the server environment.

Your options are (almost) unlimited. Many online tutorials use Heroku which is a cloud-based web application platform, but a simple Tomcat web server would suffice too. Your decisions should be based on your business requirements.  A lightweight server such as Tomcat is a good fit when it comes to web centric, user facing applications. If backend integration comes into play, a web application server should be considered.

Your choice of programming languages is also broad. PHP is one popular option, Java is another but the list by no means ends here. Your chatbot app communicates with Facebook using POST requests, so any language that supports web protocols will work. Again, make decisions having your business goals in mind.

Interested in reading more? Check out our other blogs:

Marketers: You Need to Keep Evolving

It’s clear that marketing has drastically changed in the last decade. The rise of digital, accompanied by its ever-evolving technologies in mobile and advertising will build a perpetual environment of test and learn. As well, continuous emergence of audience platforms will create a nomadic culture that follows the fickle consumer paths. Ultimately, this will dictate the sustainability of platforms.

Marketing has been one organizational function that has succumb to tremendous pressure to evolve in the last decade. It’s turned both ad agencies and companies on their ears, furiously attempting to learn and adapt, while desperately hanging on to what they already know.

Perhaps it’s time to let go. If there ever was a time to accept change it’s now. In my personal experience, and from what you’ll read,

- I’ve witnessed an incredible evolution in the digital space by way of technology and targeting,

- I’ve also witnessed rapid changes in consumer consumption and the increasing fragmentation of media,

- Adapting and learning has been integral in helping me evolve with the market demand.

Consumers have changed the game for marketers.

No longer do we have only a few mediums for content consumption. In as little as 2 decades we’ve moved beyond just TV, radio, print, billboards. We’ve also raced beyond the standard network channels, the key national newspapers.

As consumers our attention has moved to sites that speak to our own areas of interest. They may not necessarily be as popular or as known. Our peers greatly influence what we do and where we go. But, our ever trusted smart phones gives us access to inform us about the things we want, when we want them and where we want them.

This always-on economy is not about to die down. The growing consumer expectations will mandate companies to have greater visibility into where their customers are, what they’re saying, their preferences, their preferred channels and modes of communication. The growing pressure to keep the “owned” and “earned” channels “on” will challenge the business to become much more responsive than ever before.

Marketers are slowly becoming obsolete.

As marketers, our roles have been forced to evolve. It hasn’t been easy. Coupled with this consumer evolution we’re witnessing, the economic times have changed the way we operate. No longer is marketing a cost centre. We are now more accountable than ever. The old performance measures which we were accustomed to need to change. We need to evolve beyond the mindset of traditional mediums, and embrace the inherent benefits of digital and where it’s going.

Becoming obsolete is a reality in today’s fast-moving environment. Yes, today’s marketer needs to leave their comfort zone and venture into an environment that does not seems to want to sit still. Luckily, it doesn’t necessarily mean abandoning the principles they’ve learned along the way. It just means evolving their thinking and applying these same principles to the new mediums.

1. Data is the new norm: The promise of big data brings with it enormous benefits that can now inform customer preferences, propensities; identify relevant prospects in real-time; distill meaning from reams of information where it impacts competitive or brand reputation. The opportunities to target more granularly beyond just “company”-collected transactions provides profound instances to find the right customer, at the right time, in the right channels, with the right message. The need for strong data analysts to compile this information across multiple platforms and mediums will be an essential component to effectively target for acquisition; improve retention rates and optimize for real-time performance.

2. Agility is imperative: Gone are the days of relying on historical data. These days, any data point longer than 30 days is too old and therefore, irrelevant. Gone are the days when media plans or strategies are “baked”. No longer are we required (or should we be required) to sit and wait for results. With data becoming more embedded in our daily work, marketers must work towards a more agile environment: This means becoming more data responsive to an increasingly  fragmented and splintered market,  having the structures and processes to change tactics on the fly.

3. Value is the new currency: One of the hardest lessons for marketers to have learned was to refrain from leading with overt company or product messages. “Leading with value” has become a difficult principle to adopt, after years of “me-me-me” communications. Declining performance of digital ad units means marketers must rethink content from the position of the customer. The rise of editorial as an essential function within marketing will be necessary to instil this new discipline.

4. Customer convergence has arrived: All mediums are converging. Appointment TV is dead. The customer dictates the content they want to consume, across multiple mediums, the times they want it.  On-demand mediums will challenge the marketer as consumers move swiftly between tablets to smartphone to television. The new ways of targeting customers across multiple-platforms now allows the marketer more long-tail opportunities that will augment and support traditional mass targeting.

5. Customer experience mandates an always-on presence: A more informed customer expects consumers today an optimal experience that “allows them to shop and receive their purchases where they want, when they want and how they want.” This means providing the ‘continuous experience’ across brands, devices and format: mobile internet devices, computers, brick-and-mortar, television, radio, direct mail, catalog etc. Today’s marketer is channel-agnostic and is aware of sites, platforms and channels the customer is researching, eliciting recommendations, price-comparing and ultimately, buying.

6. Sustainability, not campaigns: The value of social media as an open channel two-way conversations now provides brands with the ability to not only build relationships, but benefit from the effort and commitment to nurture customer relationships through these channels. Word of Mouth and Advocacy are strong indicators of brands doing it right. The value of organic traffic that results from content value, social consistency and customer-commitment, will surpass the more costly campaign-driven ad-buys and promotions.

7. Social cannot be outsourced: Agencies will never be able to truly be able to build effective community management services. This function needs to live within the organization. Customer relationships with brands cannot be fostered via surrogate means, and then adopted into the organization. Only employees within the organization, with the proper knowledge and solutions, can effectively troubleshoot customer complaints and provide the right responses in the expected timeframe. An emerging discipline in community /customer relationship management will be critical to gauge the pulse of the community and to bridge the gap with the organization.

8. Context is key: Google has gone beyond just keyword and now tries to extract real meaning from what people search or speak about. Semantic algorithms go this one step further and now give marketers the tools to truly understand what people need and want. It’s here that will help predict and define areas the brand can connect and provide value to customers.

9. Customer-centric needs to be the standard: As digital grows up, the areas mentioned above will move companies to start to shift in ways that puts the needs of the customers at the centre of the organization. One-to-one marketing will a reality as data allows us to truly customize experiences for each customer. Retention will get increasingly harder as mediums and platforms rise and fall with the nomadic consumer and Facebook and Twitter become less standard platforms. Where pundits have prophesied the death of marketing, a more responsive, dynamic and collaborative organization will take its place.

10. A dynamic organization is a social organization: The result of these changes will inevitably move away from marketing and become embedded in all parts of the organization. A responsive, dynamic organization means that PR, HR, Product development, Inventory Management, Operations will need seamless communication channels to properly receive and disseminate information intra and outside the company to stakeholders and customers. The future CMO, in my opinion, will become more operations-minded but will rely on the collective organization to function effectively.

Marketing is no longer a discipline with best practices and tried and true techniques. As long as technology exists, and media evolves, consumers will continue to find new ways to connect and consume information. What’s clear is that these days our traditional definition of longevity is short-lived. Not only does the marketer need to morph with the times, the organization does as well.

READ MORE

Tech world came to Toronto

In May 2019, the Collision Conference  took place in Toronto for the first time, and we couldn’t miss it! It was a great opportunity to meet amazing people, learn from great companies and showcase our own capabilities.



Attending the first day’s talks at the Collision center stage


AI solutions naturally attract attention



Lots of interest interest in our conversational AI

READ MORE