No description, website, or topics provided.
Python JavaScript
Switch branches/tags
Nothing to show
Pull request Compare This branch is 4 commits ahead, 1 commit behind dimagi:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
fixtures
static
templates/tree
templatetags
.gitignore
README
__init__.py
admin.py
app.py
config.py
forms.py
models.py
tests.py
urls.py
views.py

README

This application is a generic implementation of a decision tree, which is completely database-configurable. Install this app, populate the db using django's admin UI, and boom: there's your decision tree, interactive poll, whatever you want to call it. Have a look at models.py for details on what each model is for.

EXAMPLE
user: info
system: what's your favorite fruit? apple, orange, pear
user: apple
system: i love apples too! what kind of apples?
user: macintosh
system: thanks for telling me about your fruit preferences. good-bye!

Features
* support for sessions (i.e. 100 different users can all go through a session at the same time)
* branching logic
* tree visualization
* errors for unrecognized messages (e.g. 'i don't recognize that kind of fruit') and multiple retries before exiting the session

URLS:
Note that this adds a /tree URL to (sort of) visualize trees