Passa al contenuto principale

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

NameTypeRequiredDetails
TextTextYesThe text to translate (up to 2000 characters). Discord formatting, mentions and emoji are kept as they are. Length: 1 to 2000 characters.
Target languageTextYesThe 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 languageTextNoOptional: the language the text is written in. Leave empty to let the AI detect it automatically. Maximum length: 40 characters.

Outputs

NameTypeDetails
Translated textTextThe 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

NameTypeRequiredDetails
Web addressTextNoThe full address to call, starting with https://. Maximum length: 2048 characters. Use only one of these: Connection.
ConnectionTextNoA 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.
PathTextNoThe path after the connection's base address, starting with /. Maximum length: 2048 characters.
MethodHTTP methodYesThe HTTP method. GET reads, the others send or change something. Default: GET.
Query parametersLookup table of Text to TextNoNames and values added to the address after the ?.
HeadersLookup table of Text to TextNoExtra request headers as names and values. Put API keys into a connection instead of typing them here.
BodyBodyYesWhat the request sends along: nothing, JSON, form fields or plain text. Default: None.
JSON contentAnyNoThe value to send as JSON, for example a shape value or a lookup table. Shown when Body is JSON.
Form fieldsLookup table of Text to TextNoNames and values sent as a URL-encoded form. Shown when Body is Form.
Text contentTextNoThe text to send exactly as written. Maximum length: 65536 characters. Shown when Body is Text.
Content typeTextNoThe 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 shapeShapeNoOptional: a shape the JSON answer is read into. The result appears in "Response as shape value".
TimeoutDurationNoHow long to wait for an answer, at most 20 seconds. Value: 1000 to 20000.

Outputs

NameTypeDetails
StatusWhole numberThe HTTP status code, for example 200 or 404.
SuccessfulYes/NoWhether the status is between 200 and 299.
Response textTextThe response body as text.
Response headersLookup table of Text to TextThe response headers with lowercase names. Cookies are removed.
Response as shape valueShape valueThe answer read into the response shape. Empty when no shape is set or the answer does not fit it. May be empty.
Shape problemTextWhy 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

NameTypeRequiredDetails
StatusWhole numberYesThe HTTP status code, from 200 to 599. Defaults to 200. Value: 200 to 599. Default: 200.
HeadersLookup table of Text to TextNoExtra answer headers as names and values. Cookies and headers the platform sets cannot be used.
Answer bodyBodyYesWhat the answer body contains: nothing, JSON, form fields or plain text. Default: None.
JSON bodyAnyNoThe value to send as the answer body, as JSON. Shown when Answer body is JSON.
Form bodyLookup table of Text to TextNoNames and values sent as the answer body, as a URL-encoded form. Shown when Answer body is Form.
Text bodyTextNoThe 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 typeTextNoThe 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

NameTypeDetails
SentYes/NoWhether this answer went to the sender.
Why not sentTextEmpty 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.
Need more help?
Can't find what you're looking for? Our team is happy to help.