Suppose we have a scenario where we need to choose from a set of actions

Let's say we have 2 news articles:


...

What counts as artificially intelligent? AI explained

...

Why the Fed isn't out of options yet


We will show how to use the decision service to decide on the best article based on the user's location




1. Make a Decision

The decision service makes it easy to make smarter decisions using the context you have available.

Let's apply the decision service to a smart news application. The first step is to use the context available to make a decision.

Location:

POST request URL:
https://{hostname}/API/Policy
Request header:
auth: iwb6r6fnxl2ho
Request body:
{"Location":"Seattle"}