«Webhook» is a standard block that enables integrating with any service supporting API. So, you can send requests to CRM systems, create tickets in task managers, etc.
- Open the Bots section and select the bot you want to edit.
- Click on the plus sign button and select the Webhook block.
A panel to the right of the scheme will appear. It contains the Title, URL, Method, Basic Auth, Headers and Body fields. - Enter a name (only numbers and latin letters are supported) and URL.
- From the drop-down list choose a method:
- GET — chosen by default
- POST
- PUT
- Enter your login and password in the Basic Auth field. Use the | divider between them (login | password).
- Check the bot work by clicking the Test request button. If the bot works properly you will see a message in the lower left corner: «Successful Request Request was sent successfully. You can find new variables from this request in Webhook block».
Note: if the test request failed, you will see the following message: «Request Failed Please change parameters of Webhook block and try again». If this happens, check the URL, login and password, and try again.
Note: in the POST and PUT methods choose a type: - JSON
- Form
- Multipart
- Enter your code in the Header field (format is «key: value»).
To choose a variable that exists in the system, type @ and select a variant from the list. - Enter JSON/Form code in the Body field.
To choose a variable that exists in the system, type @ and select a variant from the list.
Note: lists contain automatically generated variables only if a test request has been successful.
Note: there can’t be a full stop in the names of Form.one variable blocks and Title field in the Webhook block. - To edit the Webhook block click on it and make necessary changes. They will be saved automatically.
- To delete the Webhook block, click on the ⋮ icon in the upper right corner and select Delete block.
Comments
0 comments
Please sign in to leave a comment.