Start passage

Close the webview and start the specified passage to continue the conversation.

Want a different pasage?

If you want to change which passage the chatbot starts, see Redirect to a different passage.

Endpoint

Endpoint HTTP Method
/user/v1/start_passage POST

Parameters

Parameter Type Description In Required
accessToken String Webview access token Query True
body Object Next passage variable (JSON object). Body True

Response

Code Description Returns
200 Success Nothing
400 Error Nothing

Example

$.ajax({
    type: ‘POST’,
    url: ‘/user/v1/start_passage?accessToken=’ + accessToken,
    contentType: ‘application/json’,
    data: JSON.stringify(nextPassage),
    complete: function(xhr, textStatus){
        if(xhr.status == 200){
            MessengerExtensions.requestCloseBrowser(
                function success(), 
                function error(err){console.log(err)})
        }else if(xhr.status == 400) { }
    }   
});
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.