Integrations
Integrate with APIs and supported third-party providers.
Translate text with AI
Translates text into another language using AI. Each translation costs one AI Coin from this server's balance; the coin is only used when a translation actually comes back. If the balance is empty, the action fails with the error code AI_CREDITS_EXHAUSTED, which you can catch with "Try" to fall back to the original text. In a test run nothing is translated and no AI Coins are used.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Text | Text | Yes | The text to translate (up to 2000 characters). Discord formatting, mentions and emoji are kept as they are. Length: 1 to 2000 characters. |
| Target language | Text | Yes | The language to translate into. Anything the AI understands works, e.g. "English", "German", "de" or "pt-BR". You can also use a slash-command option here to let users pick. Length: 2 to 40 characters. |
| Source language | Text | No | Optional: the language the text is written in. Leave empty to let the AI detect it automatically. Maximum length: 40 characters. |
Outputs
| Name | Type | Details |
|---|---|---|
| Translated text | Text | The translated text. |
Send HTTP request
Calls a web API over HTTPS and gives you the answer. Each request uses part of this server's activity budget. Use a full URL, or a saved connection plus a path so the API key stays encrypted. An answer with an error status such as 404 is not a failure: check "Status" or "Successful". If the API cannot be reached, the action fails with a code starting with HTTP_ that you can catch with 'Try'. In a test run only GET requests are sent; other methods return an empty answer.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Web address | Text | No | The full address to call, starting with https://. Maximum length: 2048 characters. Use only one of these: Connection. |
| Connection | Text | No | A saved connection from the Integrations page. Its secret is added for you and only ever sent to the connection's own address. Maximum length: 64 characters. Use only one of these: Web address. |
| Path | Text | No | The path after the connection's base address, starting with /. Maximum length: 2048 characters. |
| Method | HTTP method | Yes | The HTTP method. GET reads, the others send or change something. Default: GET. |
| Query parameters | Lookup table of Text to Text | No | Names and values added to the address after the ?. |
| Headers | Lookup table of Text to Text | No | Extra request headers as names and values. Put API keys into a connection instead of typing them here. |
| Body | Body | Yes | What the request sends along: nothing, JSON, form fields or plain text. Default: None. |
| JSON content | Any | No | The value to send as JSON, for example a shape value or a lookup table. Shown when Body is JSON. |
| Form fields | Lookup table of Text to Text | No | Names and values sent as a URL-encoded form. Shown when Body is Form. |
| Text content | Text | No | The text to send exactly as written. Maximum length: 65536 characters. Shown when Body is Text. |
| Content type | Text | No | The type of the text content, for example text/plain or application/xml. Defaults to text/plain. Maximum length: 255 characters. Shown when Body is Text. |
| Response shape | Shape | No | Optional: a shape the JSON answer is read into. The result appears in "Response as shape value". |
| Timeout | Duration | No | How long to wait for an answer, at most 20 seconds. Value: 1000 to 20000. |
Outputs
| Name | Type | Details |
|---|---|---|
| Status | Whole number | The HTTP status code, for example 200 or 404. |
| Successful | Yes/No | Whether the status is between 200 and 299. |
| Response text | Text | The response body as text. |
| Response headers | Lookup table of Text to Text | The response headers with lowercase names. Cookies are removed. |
| Response as shape value | Shape value | The answer read into the response shape. Empty when no shape is set or the answer does not fit it. May be empty. |
| Shape problem | Text | Why the answer did not fit the response shape. Empty when it fit or no shape is set. May be empty. |
Answer webhook
Sends the answer to the webhook request that started this flow. Only works in flows started by a webhook that waits for an answer. The first answer wins; later ones are not sent. The answer must come within 25 seconds of the request. Each answer uses part of this server's activity budget.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Status | Whole number | Yes | The HTTP status code, from 200 to 599. Defaults to 200. Value: 200 to 599. Default: 200. |
| Headers | Lookup table of Text to Text | No | Extra answer headers as names and values. Cookies and headers the platform sets cannot be used. |
| Answer body | Body | Yes | What the answer body contains: nothing, JSON, form fields or plain text. Default: None. |
| JSON body | Any | No | The value to send as the answer body, as JSON. Shown when Answer body is JSON. |
| Form body | Lookup table of Text to Text | No | Names and values sent as the answer body, as a URL-encoded form. Shown when Answer body is Form. |
| Text body | Text | No | The text to send as the answer body, exactly as written. At most 64 KB. Maximum length: 65536 characters. Shown when Answer body is Text. |
| Content type | Text | No | The type of the text body, for example text/plain or text/html. Defaults to text/plain. Maximum length: 255 characters. Shown when Answer body is Text. |
Outputs
| Name | Type | Details |
|---|---|---|
| Sent | Yes/No | Whether this answer went to the sender. |
| Why not sent | Text | Empty when the answer was sent. Otherwise already-answered (another answer came first), too-late (the 25 seconds had passed), fire-and-forget (the webhook does not wait for answers) or test-run. May be empty. |