You can find the docker-compose.yml
inside the Jebediah repository.
You need to set following four environment variables:
Var | Description | Example |
---|---|---|
|
The facebook page access token of your page. |
EAAVNmfNNYB8BAMUzZCgEKnK … |
|
The base url of your D-BAS instance. |
https://dbas.your-domain.com, web:4284 |
|
An API - access token from the admin menu of your D-BAS instance. |
f84f6:d12c1e04sdf06bd32524d … |
|
The dialogflow endpoint from the facebook integration. Make sure you activated this integration! |
https://bots.dialogflow.com/facebook/<your-project-id>/webhook |
Then docker-compose up
Var | Description | Example |
---|---|---|
|
The facebook page access token of your page. |
EAAVNmfNNYB8BAMUzZCgEKnK … |
|
The base url of your D-BAS instance. |
https://dbas.your-domain.com, web:4284 |
-
mroerni/jebediah - The logic behind the reasoning.
-
mroerni/fb-hook - for routing facebook events to either dialogflow or eauth
-
mroerni/eauth - to store D-BAS user - external user relations
Caution
|
Ensure that the EAUTH /store is synced with the D-BAS DB. When you delete the D-BAS DB you have to delete ./store aswell! You have to restart eauth afterwards. |
-
Dialogflow-App - for the intent analyzing.
-
Facebook-App - for getting the messages
-
D-BAS - you know… arguments
-
Set
DBAS_URL
to… your DBAS_URL. -
You can set
EAUTH_STORE
if you like. Default is./store
. -
lein run
(Will start on port 1236)
Caution
|
Ensure that the EAUTH /store is synced with the D-BAS DB. When you delete the D-BAS DB you have to delete ./store aswell! |
-
Note the callback URL from Dialogflow
-
set
DIALOGFLOW_URL
to the callback url from the step above. (I will behttps://bots.dialogflow.com/facebook/<dialogflow-project-id>/webhook
) -
set
EAUTH_URL
to the url of eauth with appending/success
! Default is:http://localhost:1236/success
-
lein ring server-headless 1235
-
Get a D-BAS instance running.
-
Set
DBAS_BASE
to your D-BAS base url. (example:http://0.0.0.0:4284
) -
Get a D-BAS API token and set
DBAS_TOKEN
-
Get your Facebook page access token and set
PAGE_ACCESS_TOKEN