You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"userID": USER_ID_FROM_FACEBOOK,"lastSeen": LAST_SEEN_TIMESTAMP,"lastMessage": {
"timestamp": LAST_MESSAGE_TIMESTAMP,"event": {
"type": "node",
"target": "12F0EC20-924E-4476-B3CC-7514BB8A6913",
"label": "Go to the next node"
}
}
}
Acceptance Criteria
The chatbotfb program must:
Open any JSON-formatted campaign, as specified in the Chatbot Management API Reference Documentation, stored in a file.
Begin executing the campaign read from the file on program startup. The execution of the campaign should be in a function for that purpose, not main().
Persist to a database any information necessary to support delivery of a campaign, as specified in the User Database section of this issue.
Respond appropriately to postback events, taking whatever action is appropriate according to the campaign being delivered.
The text was updated successfully, but these errors were encountered:
EventRouter
Receives an event from Facebook and passes it to the corresponding handler
Handler
Receives a Facebook event from the event router and returns an appropriate response.
PostbackHandler
Handles a postback event.
lastSeen
andlastMessaged
Sample postback event:
MessageHandler
Handles a message event.
For now, the message handler should have two possible behaviours:
Sample message:
User Database
Stores information about users.
User record format:
Acceptance Criteria
The
chatbotfb
program must:main()
.The text was updated successfully, but these errors were encountered: