Live chat for Ruby on Rails

You could build a support chat in Rails with Action Cable, Redis and an admin screen. Or you add one line to your layout and answer customers today from an inbox that already exists.

Free plan forever · No card required

Why XACUBE here

Skip building it yourself

Action Cable, presence, file uploads, notifications and an agent inbox are weeks of work. XACUBE has all of them, maintained for you.

Users signed with OpenSSL

In the layout, OpenSSL::HMAC.hexdigest signs current_user.id with your secret, and the inbox shows the verified name.

No gem, no migration

Nothing goes in your Gemfile and no tables are added, so upgrading Rails never involves the chat.

Live in three steps

  1. 1Create a free XACUBE account, add your domain and copy the code and secret key.
  2. 2Paste the code just before </body> in app/views/layouts/application.html.erb.
  3. 3Optionally set XACUBE_SECRET_KEY and use the signed version for signed-in users, then deploy.
Full install guide

What you get

Signed-in customers

Your server signs the customer’s id, so the inbox shows their real name and nobody can pretend to be them.

One shared inbox

Every conversation from every website in one place. Assign, resolve and reopen, and share a link to any chat.

Images and drawing

Visitors and your team send JPG, PNG, WebP and GIF up to 15 MB, open them full screen and draw on them to point something out.

Auto-reply

When nobody can answer straight away, the visitor is told their message arrived. Sent once, then quiet until your team replies.

Questions and answers

Should I make a live chat in Ruby myself?

Only if the chat is your product. For customer support, a hosted chat saves you running Action Cable, Redis and storage, and gives your team an inbox on day one.

Can customers send screenshots of an error?

Yes. They paste or attach the screenshot in the chat, and you can draw on it to show which button or field you mean before sending it back.

Where do I keep the secret key?

In Rails credentials or an environment variable read with ENV.fetch. The layout only ever outputs the signature, never the key.

Can I run several Rails apps on one account?

Yes. Each app is its own website with its own key and secret, and all their chats arrive in one inbox.

Add live chat to your website today

Create a free account, add your site and answer your first visitor in a few minutes.

Start free

Free plan forever · No card required