Use this method to return the URL of a survey identified with a surveyId parameter. A session must be initiated before you can request the survey ID.
Name | Type | Description |
---|---|---|
surveyId | integer | The survey identifier, which must match an existing Survey ID stored in the Chat instance. If necessary, contact Inbenta support to activate Surveys in your instance. |
This method has no optional parameters.
This method calls the Chat API’s GET /surveys/{surveyId}
endpoint. It returns a Promise with the API response data. Please refer to the Responses section of the endpoint on the Chat API Routes page for the response format.
chatbot.api.getSurvey(<survey_id>);