Getting Started

Hooks

Advanced

Miscellaneous

Configuration

ChatBot configurations

The sample project you just ran comes with default configurations. A lot of configurations can be overridden too but for simplicity only these are used in the sample project.

resources:
  templates: "classpath*:templates/**/*.{yaml,yml}"
  triggers: "classpath*:triggers/**/*.{yaml,yml}"
  hooks:
    base-url: "http://localhost:${server.port}${server.servlet.context-path}"
    security-token: "hook-url-auth-token"

chatbot:
  configs:
    initial-stage: "START-MENU"
    session-ttl: 30
    hub-token: "replace-with-your-hub-token"
    access-token: "replace-with-your-access-token"
    phone-number-id: "replace-with-your-phone-number-id"

server:
  servlet:
    context-path: /jawce
  port: 8080

Resources

The resources section defines where to find the templates and triggers, you wont probably change this part.

The hooks is a powerful feature which enables the engine to make request calls to external service where your chatbot logic sits.

The security-token is a security credential to send in your hook requests. This can be for a secured hook endpoint using JWT, Bearer Token or any security token you implement.

Chatbot

These configs are mainly to include your WhatsApp account credentials.