context

When the bot wants to collect multiple inputs to perform one action, it returns a context. 

Channel compatibility

     

Syntax:

Copied{  
    "action": "context",
    "context_id": "book_appointment",
    "questions": {},
}

Use Case:

Copied{
    "action": "context",
    "context_id": "book_appointment",
    "questions": {
        {
            "name": "movie",
            "replies": {
                {
                    "text": "Ok, Lets make a booking with your sales execute !",
                    "icon": "https://zylker.com/meeting.jpg"
                },
                "Choose the department you would like to book appointment for ?"
            },
            "suggestions": {
                "Books",
                "SalesIQ",
                "CRM"
            }
        },
        {
            "name": "show_timing",
            "replies": {
                "Thats a great movie to watch !",
                "Choose the date for the show ?"
            },
            "input": {
                "type": "calendar",
                "time": "false",
                "tz": "true"
            }
        }
    }
}