This operation can be used to call any external HTTP or HTTPS Web API services using different methods. The full result or a single hierarchical value can be assigned to a variable to be later used in the conversation flow.
The action uses the following settings:
Choose the HTTP request method required to invoke the API Service
The URL of the service to be invoked
The username to be used to invoke the service, if required
The password to be used to invoke the service, if required
Challenge Authentication Mode
If enabled, the service will called by using Username and Password as standard Network Credentials
Headers to be sent with the request. One header on each line in a name=value format
The payload to be sent with the request. It can be anything acceptable by your target service.
The type of payload that is going to be sent to the service.
Choose if the service is replying with a JSON or XML or BINARY content
JSON Token Path
The full property path of the value to extract from the JSON response
XML XPath Query
The query to be applied to extract the required value from the XML response
The name of the variable that will hold the response received from the server or the value extracted by Token Path or XPath Query
Xenioo will invoke the URL using standard HTTP format: any service available online can be invoked and interacted using this action.
The JSON service reply format setting will also enable standard RAW replies: Xenioo will accept and store in the target variable whatever the server will reply. If you specify a JSON Token Path on a non-JSON result the action will raise an error.
The XML service reply format will automatically parse both standard XML replies and SOAP envelope replies. Typical WSDL based services are perfectly invokable using this action.
Use Payload Mode to set the type of payload you're sending to your service and to change how Xenioo will format the request.
No formatting or additional headers are used by Xenioo. The request is sent as-is.
Xenioo will automatically add a content-type:application/json header to the request
Xenioo will automatically try to split the payload in one or more variable=value strings and send the data as application/x-www-form-urlencoded.
If you specify both Username and Password but do not enable Challenge Authentication Mode, Xenioo will automatically transform both into a base64 string and call the service using an additional Authorization/Basic header like the one below:
Xenioo variables can hold without content loss only string based content. If you choose to access a service that replies in binary content (like a service that replies with a pdf file or an image) choose BINARY format as result. Xenioo will automatically create a file with the result contents inside your account storage and return the full filename url inside the target variable. If the binary service is correctly exposing a content-type for the reply, Xenioo will automatically append to the downloaded file the correct extension.
Call Completed. This action will trigger any child operation as soon as the service call is completed. The event will trigger whatever the call is successful or has failed.
This action produces the following variables:
The last HTTP message returned by the call. If successful, the variable will be set to 200 OK, otherwise it will contain the remote URL error message.
Channel specific availability follows the table below:
This action can be used only inside interactions and not as child of other actions. This action requires a Premium Account to be used on a live chatbot.