Creating stand-alone single vertical experiences from an existing Answers build

Hello,
I’m working on an Answers build and once everything has been approved we want to copy some of the verticals to make single stand-alone vertical experiences to live on certain pages of the client’s site. For example, taking only the product vertical as a single vertical experience and utilizing it on the product webpages.

Do we have any tools to help this process or best practices I should follow?

Thank you!

Hey Carolyn,

Usually I’d recommend using the CLI if you were planning on cloning an entire frontend repo, but in the case of a single vertical it may be simpler to just rely on copying and pasting. The general process would be something like this:

  1. Create a new Answers experience backend config. Then copy anything from the main backend that relates to the single vertical you’re creating this new experience for. This would include the actual vertical config as well as any related prompts, synonyms, query rules, etc.
  2. Create a new frontend repo. In this blank repo, use the “Add Page” Jambo Command to add a page named “index”. For the template of this “index” page, go ahead and choose whatever vertical template you’re currently using for the vertical you’re making this experience for. It doesn’t really matter what you choose if you complete the next step as described, but why not keep things consistent.
  3. Back in your main repo, copy the entirety of both the vertical config and vertical handlebars template and paste into the respective files for the “index” page you just added to the new repo. You’ll be completely replacing the current code in those two files for the “index” page in your new repo to turn it into an exact copy of the vertical from your main experience.
  4. Copy any desired vertical-related CSS, custom formatters, etc. and paste them into your new repo.

Now you have a new experience made up of a single vertical that is an exact match of the vertical from your main experience. Since you named this single vertical “index”, it will simply show up as the only page of the experience. There will be no “All” tab for universal search, just the stand-alone vertical.

Best,
DJ