Use cases
Any time a logged-in user needs to talk to someone on your team, you can offer a meeting from inside the app:- Upgrades. A user on a smaller plan clicks a feature their plan doesn’t include and books time with sales.
- Renewals. A customer near renewal books with their account manager.
- Support and help. A user stuck on a settings page books with the person who knows that part of your product.
- Account requests. Anything else a customer would otherwise email about.
How the in-app scheduler works
The in-app scheduler uses the same RevenueHero script and Inbound Router as the scheduler on your website. The difference is where the data comes from. On a website, a visitor fills in a form. Inside your app, your code sends the logged-in user’s details to RevenueHero when they click a button or link.- The user clicks a button or link in your app, such as Talk to us.
- Your code calls
hero.submit()with the user’s details from your app. - RevenueHero runs the router’s rules and picks the rep.
- Your code calls
hero.dialog.open(), and the scheduler opens on top of your app.
Set up the in-app scheduler
Create a new Inbound Router
Map a new form for your app

- Form Name. A name you’ll recognise, such as
In-app help. - Webpage url where your form is present. Leave it empty. Your app has no form page.
- Form Selector. This field is required to save the form mapping, but it isn’t used for in-app bookings. Enter any placeholder, such as
#in-app-help.

- Email and Name are required. In Form field name, type the key your code will send for each, for example
emailandfirstname. - Map Additional Form Inputs is only needed for fields a routing rule uses, such as plan or region. Your app already knows who the user is, so you rarely need more.
Email and email are different keys. If you map email, your code sends email: user.email. Save the form mapping.Set the routing rules
- Matching rules. Most of your users are customers who already have an owner in your CRM, and it’s usually best that they talk to that person. A matching rule books them with their existing owner. If you don’t want owners to take these meetings, leave matching rules off.
- Distribution rules. These decide who gets the meeting when there is no owner match. You can route by region, team, or where in your app the user asked for help.

An in-app router with distribution rules for Solutions Engineers, US users and non-US users.
routing-logs sends users who ask for help from your routing logs page to the team that knows it best.
hero.submit(), for example product_area: "billing", and add a condition on it from Form Inputs in a distribution rule. In a native mobile app, Source URL isn’t available, so send a field like this to tell your rules where the user came from.Configure the router
In-app help router, and create it.Copy the in-app snippet

#buttonId with the element your users click, and field: "value" with the fields from your form mapping.Add the code to your app
<head> of your app, before any code that uses it.showLoader: true next to routerId. Every option is listed under Constructor options.Test it
Tips for in-app setups
Call hero.submit() on click, not when the screen loads
Call hero.submit() on click, not when the screen loads
hero.submit() is called. If your app calls it as soon as a screen opens, every user who opens that screen goes through routing and shows up in Routing Logs, whether or not they wanted a meeting. Users who qualify but don’t book are also sent to your CRM with the meeting status Not booked, so everyone who opened that screen would be marked that way. Call it when the user clicks.Send one submission per click
Send one submission per click
hero.submit() once. If a click fires the handler more than once, which can happen in mobile apps, Routing Logs show duplicate submissions a few seconds apart.Error: email could not be determined from the form submission
Error: email could not be determined from the form submission
hero.submit() fails with a 422 error and this message, RevenueHero didn’t find the email in what your code sent. Check that the key matches the Form field name in your form mapping exactly, including capital letters, and that the snippet’s field: "value" placeholder has been replaced with your real fields.Allow free email addresses if your users have them
Allow free email addresses if your users have them
Users who aren't in your CRM yet
Users who aren't in your CRM yet
Leave out fields your app doesn't have
Leave out fields your app doesn't have
hero.submit(). Routing still runs. It fails only if the email is missing or doesn’t match your form mapping, or if a rule uses a field that isn’t in your form mapping.Change routing without releasing your app
Change routing without releasing your app
Your customers can now book the right person without leaving your product. 🎉
Installation Methods
hero.submit(), hero.dialog.open() and React examples.