Web Requests and Webhooks
Start a bot reaction from a website event, or request another service from a reaction. Incoming and outgoing request settings.
בעמוד זה
A website can tell your bot about a new inquiry, and the bot can ask your store for an order status. These are two directions of communication:
| Direction | Who starts it | Example |
|---|---|---|
| Incoming webhook | Another service notifies GetMyBot and starts a reaction | A website gets an inquiry; the bot alerts a manager |
| Outgoing web request | A reaction asks another service and receives a response | The bot asks for a price or order status |
A webhook is an automatic notification from one service to another. Both directions use HTTP, the same protocol a browser uses to reach websites. For ready-made connections, see Integrations.
Incoming webhook (trigger)
The "Incoming web request (webhook)" trigger fires a reaction on an external HTTP request:
- Address: enable the trigger and save the reaction. GetMyBot then generates its webhook URL and shows it in this field. You can copy the URL, but you cannot edit it.
- Secret token: prevents outsiders from starting the reaction at this address.
- Method:
POST/GET/PUT/ANY.
Fields in the request enter the reaction's temporary data (ctx). For example, if the service sends order_id, an action can use it as {{ctx.order_id}}. After setup, send a test request and check that the reaction receives the fields you need.
Outgoing web request (action)
The "Web request" action makes an HTTP request from a reaction:
- method (
GET,HEAD,OPTIONS,POST,PUT,PATCH, orDELETE), headers, and body (JSON or text); - success codes, timeout, and retry count on error;
- saving the response to a customer parameter or temporary reaction data (
ctx); JSONPath identifies the field to extract from the response; - asynchronous mode: the bot continues without waiting for the service. A separate reaction can handle success or error.
Related actions: "Load URL" (download page text into ctx) and "Query source" / "Write to source" for saved connectors: see Sources and keys.
Webhook integration
To send data regularly to one service, configure a Webhook integration. Set its URL and HMAC signature so the receiving service can verify the sender. See Integrations.
Security
Set a secret token on an incoming webhook so outsiders cannot start the reaction. Outgoing requests cannot reach internal network addresses through the platform. This protection is called SSRF prevention. Response size is also limited.
What's next
- Triggers: the incoming webhook trigger.
- Actions:
Web request,Load URL. - Substitutions and formulas: request data in
ctx.