You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 839d13a
Browse filesBrowse the repository at this point in the historyBrowse files
**id** | **string** | The build task ID, used with the `Get website build task` tool | [default to undefined]
9
+
**state** | **string** | The build state. `TASK_STATE_SUBMITTED` and `TASK_STATE_WORKING` mean the build is still running. `TASK_STATE_COMPLETED` means it finished. `TASK_STATE_FAILED` means it broke, and `TASK_STATE_REJECTED` means it never started: the website does not contain the requested changes. `TASK_STATE_CANCELED` means the user stopped it; changes made before that may be kept. | [default to undefined]
10
+
**updated_at** | **string** | When the build last changed state | [optional][default to undefined]
11
+
**reason_code** | **string** | Why the build stopped, or null. `insufficient_credits`: the user has no credits left; `execution_error` or `missing_result`: the build broke; `iteration_limit`: the build stopped early and kept the work done so far. | [optional][default to undefined]
12
+
**message** | **string** | Guidance to tell the user about the build outcome, or null | [optional][default to undefined]
13
+
**summary** | **string** | An internal changelog entry describing what the build changed, or null until the build ends. Rewrite it in plain language before showing it to the user. | [optional][default to undefined]
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
Create new Hostinger AI Builder website from the given message.\\n Use this tool when user asks you to create a website, landing page, blog or any other type of application.\\n This tool initiates the website creation process and returns a website URL and ID. The generation happens asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger AI Builder is now creating their website and it will be ready in a few minutes and you should provide the website URL to the user immediately Do not write code.\\n\\nTo edit afterwards, use the `Edit website` tool with the returned website ID, or the user can go to Hostinger AI Builder interface in the provided website URL. If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat. \\n TECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n The environment is limited to the following technologies. You MUST NOT use, suggest, or implement any technology outside this list:\\n \\n - Language: JavaScript ONLY. - Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n - Framework: React.\\n - Navigation: React Router.\\n - Styling: TailwindCSS.\\n - Components: shadcn/ui (built with @radix-ui primitives).\\n - Icons: Lucide React.\\n - Animations: Framer Motion.\\n \\n BACKEND & DATA STORAGE:\\n - Hostinger AI Builder integrated backend is the EXCLUSIVE solution for persistent data storage, authentication, and database needs.\\n - Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n - Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n \\n MAPS:\\n - OpenStreetMap is the default provider.\\n - Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n
71
+
Create new Hostinger AI Builder website from the given message.\\n Use this tool when user asks you to create a website, landing page, blog or any other type of application.\\n This tool initiates the website creation process and returns a website URL, ID and build `task`. The generation happens asynchronously. To learn whether it succeeded, poll the `Get website build task` tool with `task.id`; `is_generating` turning false on `Get website` happens whether the build completed or failed.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger AI Builder is now creating their website and it will be ready in a few minutes and you should provide the website URL to the user immediately Do not write code.\\n\\nTo edit afterwards, use the `Edit website` tool with the returned website ID, or the user can go to Hostinger AI Builder interface in the provided website URL. If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat. \\n TECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n The environment is limited to the following technologies. You MUST NOT use, suggest, or implement any technology outside this list:\\n \\n - Language: JavaScript ONLY. - Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n - Framework: React.\\n - Navigation: React Router.\\n - Styling: TailwindCSS.\\n - Components: shadcn/ui (built with @radix-ui primitives).\\n - Icons: Lucide React.\\n - Animations: Framer Motion.\\n \\n BACKEND & DATA STORAGE:\\n - Hostinger AI Builder integrated backend is the EXCLUSIVE solution for persistent data storage, authentication, and database needs.\\n - Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n - Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n \\n MAPS:\\n - OpenStreetMap is the default provider.\\n - Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n
Edit an existing Hostinger AI Builder website with a follow-up message.\\n Use this tool when the user wants to change, extend or fix a website that already exists.\\n This tool queues the requested changes and returns the website URLand ID. The changes are applied asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger AI Builder is now applying the requested changes and they will be ready in a few minutes, and you should provide the website URL to the user immediately. Do not write code.\\n If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat.
126
+
Edit an existing Hostinger AI Builder website with a follow-up message.\\n Use this tool when the user wants to change, extend or fix a website that already exists.\\n This tool queues the requested changes and returns the website URL, ID and build `task`. The changes are applied asynchronously. To learn whether they were applied, poll the `Get website build task` tool with `task.id`; `is_generating` turning false on `Get website` happens whether the build completed or failed.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger AI Builder is now applying the requested changes and they will be ready in a few minutes, and you should provide the website URL to the user immediately. Do not write code.\\n If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat.
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)
Get the state and outcome of a website build started by the `Create website` or `Edit website` tool.\\n Use this tool with the `task.id` those tools return to find out whether the build completed or failed. Poll it every 30 seconds or so while `state` is `TASK_STATE_SUBMITTED` or `TASK_STATE_WORKING`.\\n When `state` is `TASK_STATE_FAILED` or `TASK_STATE_REJECTED`, the website does not contain the requested changes: tell the user, using `message` and `reason_code`, and do not publish it. When `state` is `TASK_STATE_CANCELED`, the user stopped the build and changes made before that may be kept: publish only if the user asks to. `reason_code``insufficient_credits` means the user must get more credits before building again.\\n When `state` is `TASK_STATE_COMPLETED`, the website can be published. A `reason_code` of `iteration_limit` on a completed build means it stopped early and kept the work done so far.
|**websiteId**|[**string**]| The website ID | defaults to undefined|
211
+
|**taskId**|[**string**]| The build task ID, returned as `task.id` by the `Create website` and `Edit website` tools | defaults to undefined|
212
+
213
+
214
+
### Return type
215
+
216
+
**HorizonsV1WebsitesBuildTaskResource**
217
+
218
+
### Authorization
219
+
220
+
[apiToken](../README.md#apiToken)
221
+
222
+
### HTTP request headers
223
+
224
+
-**Content-Type**: Not defined
225
+
-**Accept**: application/json
226
+
227
+
228
+
### HTTP response details
229
+
| Status code | Description | Response headers |
230
+
|-------------|-------------|------------------|
231
+
|**200**| Success response | - |
232
+
|**401**| Unauthenticated response | - |
233
+
|**500**| Error response | - |
234
+
235
+
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)
Get the link for the user to open their website in Hostinger AI Builder interface.\\n Use this tool when the user wants the link to an existing website, or when you need its website URL before or after editing it.\\n `is_in_progress` is true while changes are being generated or the website is being published; wait until it is false before publishing. `is_generating` is true while changes are being generated, and `actions_in_progress` has `website_publish` while the website is being published. `published_at` is when the website was last published, `is_template` is whether its published pages show the \"Use template\" banner, and `has_ecommerce_store` is whether it has an online store.\\n Websites can be edited with the `Edit website` tool, or by the user in Hostinger AI Builder interface in the provided website URL.
286
+
Get the link for the user to open their website in Hostinger AI Builder interface.\\n Use this tool when the user wants the link to an existing website, or when you need its website URL before or after editing it.\\n `is_in_progress` is true while changes are being generated or the website is being published; wait until it is false before publishing. `is_generating` is true while changes are being generated, and `actions_in_progress` has `website_publish` while the website is being published. `is_generating` turns false whether the build completed or failed: use the `Get website build task` tool to learn its outcome. `published_at` is when the website was last published, `is_template` is whether its published pages show the \"Use template\" banner, and `has_ecommerce_store` is whether it has an online store.\\n Websites can be edited with the `Edit website` tool, or by the user in Hostinger AI Builder interface in the provided website URL.
Publish a Hostinger AI Builder website so its latest changes go live.\\n Use this tool when the user asks to publish, deploy or make their website live.\\n This tool starts the publish process and returns the URL the website will be live on. Publishing happens asynchronously and takes a few minutes.\\n Set `is_template` only when the user explicitly asks to share the website as a template: true adds a \"Use template\" banner to its published pages that copies the website into the visitor\'s own account, and false removes it. Leave it out to keep the current setting.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that the website is being published and you should provide the published URL to the user immediately.
339
+
Publish a Hostinger AI Builder website so its latest changes go live.\\n Use this tool when the user asks to publish, deploy or make their website live.\\n If you created or edited the website in this conversation, first check its build with the `Get website build task` tool and publish only when its `state` is `TASK_STATE_COMPLETED`. After a failed build, tell the user instead of publishing.\\n This tool starts the publish process and returns the URL the website will be live on. Publishing happens asynchronously and takes a few minutes.\\n Set `is_template` only when the user explicitly asks to share the website as a template: true adds a \"Use template\" banner to its published pages that copies the website into the visitor\'s own account, and false removes it. Leave it out to keep the current setting.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that the website is being published and you should provide the published URL to the user immediately.
0 commit comments