Skip to content

alphagov/smart-answers

Folders and files

NameName
Last commit message
Last commit date
Jan 11, 2021
Jan 11, 2021
Aug 19, 2020
Nov 24, 2020
Oct 27, 2011
Jan 14, 2021
Jan 19, 2021
Oct 27, 2011
Aug 13, 2012
May 28, 2020
Jan 15, 2021
Jan 15, 2021
May 27, 2014
Jan 11, 2021
Nov 23, 2020
Jul 27, 2020
Oct 8, 2020
Feb 21, 2019
Jan 11, 2021
Jan 15, 2021
Jan 18, 2021
Mar 11, 2015
Jun 24, 2020
Jan 11, 2021
Jun 22, 2020
Nov 2, 2018
Jan 11, 2021
Apr 9, 2020
Jan 11, 2021

Repository files navigation

Smart Answers

Smart answers are a great tool for content designers to present complex information in a quick and simple way. Defining what they are – decision trees? calculators? tools? is immaterial – what they do is provide a reusable technical framework to build a quick and simple answer to a complex question.

Read more in Lisa Scott's GDS blog post.

Screenshots

Student Finance Forms screenshot

Live examples

Nomenclature

  • Smart Answer: The flow, questions and outcomes.

  • Flow: Defines the questions, outcomes and the rules for navigating between them.

  • Landing page: Contains a description of the Smart Answer and the "Start now" button that leads to the first question.

  • Question page: Contains an individual question that's asked in order to help arrive at at an outcome.

  • Outcome page: Contains the result of the Smart Answer based on responses to individual questions.

Technical documentation

This is a Ruby on Rails application that contains:

  • A Rails application to serve Smart Answers
  • A DSL for creating Smart Answers
  • The Smart Answers that appear on GOV.UK

NOTE. This application doesn't use a database and as such it doesn't include the ActiveRecord Railtie in application.rb.

Dependencies

Smart Answers

Smart Answer flow development

Smart Answers app development

Debugging

Registering on GOV.UK

  • bundle exec rake publishing_api:sync_all will send all smart answers to the Publishing API.

Licence

MIT License