FACEBOOK CONFIGURATION
The facebook configuration guide of following topics:
Create a Facebook account for the Bank
- Login to Facebook with this credentials.
- Create a new page.
- Navigate to developer link and create an application as shown below.
- Navigate to dashboard page and note the app secret.
- Navigate to Messenger > Settings page from left panel and in token generation section select the page created previously. Note the page access token.
- In the webhook section select the events.
- Navigate to Webhook > Edit Subscription.
- Add the IBCS URL here.
IBCS URL should be available on the internet for Facebook to get access. One can configure ngrok to IBCS and get the tenant URL for the same. This URL is obtained from below screen in IBCS. The verify token is also obtained here
IBCS Configurations
- Login to IBCS and import the OBDX bot shipped with OBDX installer. This is a json (OBDX.json) file obtained in the installer in OBDX_Installer/installables/chatbot/config directory. Import this by clicking the “Import Bot” on IBCS dashboard.
- Click on the OBDX Bot.
- Update the Page access token and App Secret created previously in Facebook console.
- Navigate to Webhook and enter the OBDX URL here. The OBDX setup and the IBCS setup must be accessible either in the same LAN, else host OBDX on internet using ngrok
- Add username/password (in HTTP Basic authorization) of any user with Administrator role which can be used to login in OBDX Weblogic server.
OBDX Servers Configurations
Ensure that below applications are running on OBDX server
- com.ofss.digx.appx.chatbot.rest
- com.ofss.digx.chatbot
In chatbot.properties in com.ofss.digx.chatbot.ear > com.ofss.digx.chatbot.jar, enter the base URL of the OBDX server where DIGX application is running.
Note: Enter the Weblogic port. If using OHS, that should not be patched with Webgate
If the server needs proxy to connect to internet, enter proxy details here else leave them blank. This call is required for the chatbot to display the typing.. icon in chat. The connection is directly from OBDX Chatbot application to Facebook. The access token of the Facebook page is also required here (which is generated on Facebook console in step 3e).
Redeploy the ear after above changes
Asserter is required so that OBDX can assert the identity of the user who has a valid token. This token is issued by OBDX once mobile number and OTP validation is successful. Asserter jar is available in the installer in OBDX_Installer/installables/custom_asserter Custom Asserter directory
- Add OBDXJWTAsserter to Weblogic
Copy the OBDXJWTAsserter.jar to weblogic home at below location –
<Weblogic Home>/Middleware/wlserver/server/lib/mbeantypes
Restart Admin/Managed servers
Login to Admin console and add the selected asserter
Add the asserter and give any name. Restart admin and managed servers.
Verification Steps
- Check if OBDX server Chatbot application is running and accessible over the component URL given to IBCS. Open a browser and enter the URL as entered in IBCS component services.
- Login to IBCS and click OBDXBot > Test.
Enquire about account balance
- Login to Facebook > Navigate to the page and click > Send message.
- Click Get Started in the chat window > You should receive welcome message from IBCS.
- Enquire about account balance > OTP should be received on given mail ID in party creation in core banking.