License Documentation Status Gitter

Phone Service Example

This example simulates voice phone dialing a-la Siri or Google Assistant. It doesn't actually do a phone dialing but it recognizes the recipient and returns it back. You can easily add access to the a contact database and issue the call via many existing REST services.

Running

You can run this example from command line or IDE in a similar way:

  1. Run REST server:
    • Main class: org.apache.nlpcraft.NCStart
    • VM arguments: -Dconfig.override_with_env_vars=true
    • Environment variables:
      • CONFIG_FORCE_nlpcraft_server_tokenProviders.0=nlpcraft
      • CONFIG_FORCE_nlpcraft_server_tokenProviders.1=google
    • Program arguments: -server
  2. Run data probe:
    • Main class: org.apache.nlpcraft.NCStart
    • VM arguments: -Dconfig.override_with_env_vars=true
    • Environment variables: CONFIG_FORCE_nlpcraft_probe_models.0=org.apache.nlpcraft.examples.phone.PhoneModel
    • Program arguments: -probe
  3. Run test:
    • JUnit 5 test: org.apache.nlpcraft.examples.phone.PhoneTest
    • or use NLPCraft REST APIs with your favorite REST client

Documentation

See Getting Started guide for more instructions on how to run these examples. See also Integrations section on how to configure 3rd party token providers.

For any questions, feedback or suggestions:

Copyright

Copyright (C) 2020 Apache Software Foundation