Skip to content
This project illustrates using https://api.ai/ for enabling rich conversation in Russian.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
PizzaPitDump_APIAI_20170827.zip
README.md
_config.yml
apiai1.png
apiai2.png
capture1.png
pizzapit-dan-gold-249370.png
pom.xml

README.md

PizzaPit - AI assisted voice pizza order

This project illustrates using API.AI for enabling rich conversation in Russian.

Also using TTS service such as Amazon Polly so responses are transformed into speech.

This example implements simplified Pizza order service from hello to delivery.

THIS EXAMPLE IMPLEMENTED IN RUSSIAN LANGUAGE!

Running

  • See TestConversation.java and TestPolly.java unit test cases

In future we will bring web interface.

Example conversation (with context)

INFO: Requesting Привет!
INFO: Got response: Добрый день! Я могу автоматом заказать вам пиццу!, {total="0"}
INFO: Requesting Заказать пиццу
INFO: Got response: Какую пиццу вы хотите заказать? Например есть баварская., {}
INFO: Requesting Баварская пицца
INFO: Got response: Баварская пицца по цене 699 рублей добавлена в заказ, {ordercrust=["thick"], ordersize=["28"], lastprice="699", ordertotal=["699"], orderlist=["bavarskaya"]}
INFO: Requesting 33 см
INFO: Replaced ordertotal last value "699" with 779
INFO: Replaced ordersize last value "28" with 33
INFO: Got response: Размер последней пиццы установлен в 33 см, {}
INFO: Requesting тонкое тесто
INFO: Replaced ordercrust last value "thick" with thin
INFO: Got response: Тесто установлено на тонкое, {}
INFO: Requesting пицца 3 мяса
INFO: Got response: Пицца 3 мяса по цене 699 рублей добавлена в заказ, {ordercrust=["thick"], ordersize=["28"], lastprice="699", ordertotal=["699"], orderlist=["3meat"]}
INFO: Requesting оформить
INFO: Calculated sum: 1478 for ordertotal
INFO: Got response: Заказ на сумму 1478 рублей готов. Отправить в доставку?, {orderstatus="ready"}
INFO: Requesting да
INFO: Got response: Заказ передан в доставку! Спасибо!, {orderstatus="confirm"}
INFO: Final context {total="0", ordercrust=["thin","thick"], orderstatus="confirm", ordersize=["33","28"], lastprice="699", ordertotal=["779","699"], orderlist=["bavarskaya","3meat"]}

Video capture of interaction

Video capture

Example api.ui project (dump available in repository)

List of intents

Editing intent

You can’t perform that action at this time.