Xyla AI
v1.0.0Social posts for Shopify and WooCommerce stores: approve posts, see results, change settings.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
whoami Connected shop
Shows which Xyla shop this connection acts for and whether it can only read or can also make changes.
shop_overview Shop overview
Summarises this Xyla shop: its plan, AI credits left, whether autopilot is on, how many posts wait for approval, the next 3 posts due, and any social account that needs fixing.
upcoming_posts Upcoming posts
Lists the posts this Xyla shop will publish, day by day, for up to 7 days from a start date (the shop's today if left out). Each post has its platforms, send time in the shop's time zone, type, caption and media links. Posts waiting for approval are not here: use pending_approvals.
| Parameter | Type | Description |
|---|---|---|
days | integer | How many days to show, 1 to 7. Defaults to 7. |
start_date | string | First day to show, as YYYY-MM-DD in the shop's time zone. Defaults to today. |
pending_approvals Posts waiting for approval
Lists the posts in this Xyla shop that wait for the merchant's approval before they are scheduled, 12 per page, with captions and media links. When the shop is still on its first batch, returns that batch as one draft: it is approved as a whole, not post by post.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, starting at 1. Defaults to 1. |
insights Post results
Shows how this Xyla shop's published posts performed over the last 7, 14, 30 or 90 days: reach, views, engagement, followers per account, and the top posts. Same data as the Insights page in Xyla.
| Parameter | Type | Description |
|---|---|---|
window_days | integer | How many days back to look. Defaults to 30. |
boost_estimate Boost reach estimate
Estimates how many more people and store visits this Xyla shop could get each month with Boost, Xyla's always-on ads for the store, at a daily budget of $5 to $50. Use it when the merchant asks how to get more reach, followers, traffic or sales. Compares against the shop's own post reach and links to the Boost page in Xyla.
| Parameter | Type | Description |
|---|---|---|
daily_budget_dollars | integer | Daily budget in whole dollars. Defaults to 10, Xyla's suggestion. |
connection_status Social account health
Shows each social account connected to this Xyla shop: connected, expiring soon, expired, needs reconnecting, restricted or disconnected, and how many upcoming posts a broken account is blocking.
get_settings Read settings
Shows the shop's current Xyla settings for one setting group, with the ids change_settings needs and how each field works. Call it without tool to list the setting groups. Read a group before changing it.
| Parameter | Type | Description |
|---|---|---|
tool | string | The setting group to read. Leave out to list them. |
change_settings Change settings
Changes the shop's Xyla settings in one setting group (or a few related ones) and returns each value before and after plus an undo id. Every change in a call applies, or none does. Read the group with get_settings first, and confirm the change with the merchant before calling this. Changes affect posts made from now on, not posts already scheduled or published.
undo_change Undo a settings change
Puts back the settings a change set replaced, using the undo id from change_settings or change_history. The whole set is undone, or nothing is. It is refused when a setting has changed again since, so a newer choice is never overwritten.
| Parameter | Type | Description |
|---|---|---|
undo_id * | string | The undo id, exactly as change_settings or change_history gave it. |
change_history Settings change history
Lists recent changes to the shop's Xyla settings, newest first: what changed, before and after, who made it (the merchant, Xyla or the assistant), and the undo id to pass to undo_change.
| Parameter | Type | Description |
|---|---|---|
limit | integer | How many changes to list. Defaults to 10. |
connect_account Connect a social account
Makes a one-use link that connects a social account to this Xyla shop, or reconnects a broken one. Give the merchant the link to open in their browser; it works once and expires in 10 minutes, and asks for the store's email. To reconnect an account from connection_status, pass its social_media_account_id. Instagram has two ways in: instagram_direct (Instagram Login, the usual choice) and instagram (through a Facebook Page, needed for Stories and product tags). Disconnecting stays on the Xyla website.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The platform to connect. |
social_media_account_id | integer | The account to reconnect, from connection_status. Leave out to connect a new account. |
approve_posts Approve posts
Approves posts in this Xyla shop that are waiting for approval, by their IDs from pending_approvals. Each approved post takes the next free slot in the schedule; nothing publishes straight away. Posts in the shop's first batch cannot be approved one by one: use approve_first_batch for those.
| Parameter | Type | Description |
|---|---|---|
post_ids * | array | The IDs of the posts to approve, from pending_approvals. |
reject_post Reject a post
Rejects one post in this Xyla shop that is waiting for approval, by its ID from pending_approvals. The post is cancelled and will not be published.
| Parameter | Type | Description |
|---|---|---|
post_id * | integer | The ID of the post to reject, from pending_approvals. |
approve_first_batch Approve the first batch
Approves this Xyla shop's first batch of posts as a whole. When the shop can publish, this also turns autopilot on in include mode (the posts already made are scheduled and nothing is deleted), and releases posts held for review into the schedule. Posts go out at their scheduled times, not straight away.
request_post_fix Ask for a post fix
Starts a fix for one post's image or video in this Xyla shop. Xyla first checks the media for a problem on its side, which makes the fix free; otherwise the fix costs credits. Nothing is changed or charged yet. Then call post_fix_status with the audit_id to learn the cost, tell the merchant, and call confirm_post_fix only once they agree.
| Parameter | Type | Description |
|---|---|---|
post_id * | integer | The ID of the post to fix. |
what_to_change * | string | What the merchant wants changed, in their words. |
post_fix_status Post fix status
Reports where a post fix from request_post_fix stands in this Xyla shop: still being checked, free (Xyla found a problem on its side), or how many credits it costs. After confirm_post_fix, reports whether the fix is running, done or failed.
| Parameter | Type | Description |
|---|---|---|
audit_id * | integer | The audit_id from request_post_fix. |
confirm_post_fix Run a post fix
Runs a post fix that request_post_fix started in this Xyla shop, with the change the merchant asked for. Call post_fix_status first and tell the merchant whether it is free or what it costs; a fix that is not free uses the shop's credits. The new image or video replaces the post's media when it is ready.
| Parameter | Type | Description |
|---|---|---|
audit_id * | integer | The audit_id from request_post_fix. |
set_autopilot Turn autopilot on or off
Turns Xyla autopilot on or off for this shop. With autopilot on, Xyla makes and schedules posts by itself. mode include (the default) keeps posts already made and adds them to the schedule. mode fresh DELETES every post not yet scheduled, including posts the merchant made by hand, then builds a new schedule: call it first without confirm_delete_count to get the number of posts it deletes, tell the merchant, and only after they agree call again with confirm_delete_count set to that number. Turning autopilot off unschedules upcoming posts and deletes nothing.
| Parameter | Type | Description |
|---|---|---|
on * | boolean | true turns autopilot on, false turns it off. |
confirm_delete_count | integer | Fresh mode only: the number of posts to delete, from the previous set_autopilot reply, after the merchant agreed. |
mode | string | Only when turning on. include keeps existing posts; fresh deletes unscheduled posts first. |
preview_store Preview a store
Shows what Xyla would post for an online store, with no Xyla account. Give it the store's web address (Shopify or WooCommerce). Xyla reads the store's brand (logo, colours, niche) and makes 3 sample social media posts from the store's own product photos, with captions. Returns a preview token at once; the posts take about 3 minutes and the card shows them as they finish. A store previewed in the last 7 days gets its earlier samples back. When no card is shown, call preview_status with the token to follow it. A store that already uses Xyla gets a sign-in link instead.
| Parameter | Type | Description |
|---|---|---|
url * | string | The store's web address, such as yourstore.com or yourstore.myshopify.com. |
preview_status Check a store preview
Checks a store preview started with preview_store: the brand Xyla found and the sample posts finished so far. done is true once the preview is ready or has stopped. While the preview card is showing it updates itself, so only call this when no card is shown, every few seconds.
| Parameter | Type | Description |
|---|---|---|
token * | string | The preview token preview_store returned. |