---
"title": "30. The Infrastructure Behind Salesforce’s Chatbots"
"description": "Chatbots have a long history weaved into the evolution of communication on the Internet, from IRC and XMPP to Slack and Discord. They're scriptable applications that respond to a user's commands, and they rely heavily on APIs to send actions and receive responses. They don't require much in terms of computational power or disk storage, but as with any kind of software, scaling them to support millions of users across the world requires a fail-safe operational strategy. For its customers, Salesforce offer a live agent support product with a chatbot that reacts to customer inquiries. The team behind the bot join us on this episode of Code[ish] to talk about how they leverage Heroku for its multi-regional requirements."
"date": "2019-08-16"
"authors":
  -
    "name": "Jason Salaz"
"url": "https://wp-www-staging.heroku.com/codeish-podcasts/30-the-infrastructure-behind-salesforces-chatbots/"
---

# 30\. The Infrastructure Behind Salesforce’s Chatbots

As part of its product suite to automate a business' needs, Salesforce offers a Live Agent product, whose central component is a chatbot that can respond to a user's inquiries on the web or other messaging platforms, such as Facebook or SMS. A key design requirement of the chatbot is to be able to simulate human interaction by responding quickly. For an engineering team of eight, that means being able to offload as much operational responsibility as possible to Heroku's platform.

Salesforce's customers exist around the world, from Europe to Asia to the Americas. Heroku provide multiregional offerings for its dynos and databases that don't require too much administration or configuration. The benefits of not needing to define roles or specifications further simplifies the chatbot team's own architectural decision to design it as a collection of microservices.

Furthermore, the chatbot team uses Terraform to define the infrastructure requirements of their application. By predefining the necessary add-ons, data services, and private spaces for every application, they are able to quickly spin up new external services whenever necessary.

## Links from this episode

- [Salesforce's Live Chat](https://www.salesforce.com/products/service-cloud/features/live-agent/) is powered by chatbots to reply to users' issues in real-time.
- [Heroku buildpacks](https://devcenter.heroku.com/articles/buildpacks) are open source packages which turn an application's source code into an executable slug. The Salesforce chatbot team built their own customized buildpacks to support their unique needs.
- Terraform offers [a provider that integrates with Heroku](https://www.terraform.io/docs/providers/heroku/index.html)