Connect your API
Point repliyo at your own REST endpoints so the chatbot answers from live store data: URL, method, auth header and response field.
How the connection works
You don't upload your orders or catalogue to repliyo. Instead you tell repliyo which of yourREST endpoints answers each kind of question. When a customer asks, repliyo works out what they're asking, fills the details it found (an order number, a search term) into your URL, calls it, and turns the JSON it gets back into a chat reply.
Because the call happens at the moment of the question, the answer is always current — and repliyo doesn't keep a copy of what comes back. See Security for the full data flow. For the overview of this approach, see API integration.
One endpoint per question type
repliyo has five built-in question types. You connect an endpoint to each one you want to support; the placeholders are the details repliyo can fill into your URL.
| Question type | Placeholders | Guide |
|---|---|---|
| Order status | {order_id} | Read |
| Order list | {user_id} | Read |
| Product info | {product_id} | Read |
| Product search | {query} | Read |
| Booking | {booking_date} {booking_time} {service_type} {booking_id} | Read |
You can't define new question types yet. For anything outside these five — return policies, sizing guides, shipping rules — use documents.
Add an endpoint
In your dashboard, open Endpoints and add one for a question type. Each endpoint has:
- •Label: a friendly name for your own reference, such as “My Orders API”.
- •Method: GET or POST. Both send the request with no body; see Request & response mapping.
- •URL template: the URL to call, with placeholders like {order_id} that repliyo fills in.
- •Auth header (optional): a header name and value, such as Authorization and Bearer …, sent with every call. The value is write-only: it isn’t shown again after you save.
- •Response path (optional): a JSONPath pointing at the part of your response to use, such as $.status. Leave it blank and repliyo summarises the response for you.
- •Active: switch an endpoint off without deleting it.
Question type: Order status
Method: GET
URL template: https://shop.example.com/api/orders/{order_id}
Auth header: Authorization: Bearer <your token>
Response path: $.statusIf you add more than one active endpoint for the same question type, repliyo uses the most recently updated one. How many endpoints you can have depends on your plan — see Pricing.
Test before you go live
Each endpoint has a test button that fires a real call to your API from the dashboard, so you can check the URL, auth header and response path without opening the widget. You can supply a real value (an actual order number, say) for the placeholder; otherwise a sample value is used. Your API needs to be reachable from the internet over HTTPS — repliyo calls it from its own servers, not from the visitor's browser.
Next
If an answer comes back wrong or empty, read Request & response mapping for exactly how repliyo builds the request and reads your response. To control who can see order and booking data, read Authentication. The {...}placeholders are filled from the customer's message automatically.
