Appwrite icon

Appwrite

Interact with Appwrite API

Actions181

Functions → Create Execution

AI-generated

Overview

This node interacts with the Appwrite API to create an execution of a specified function. It is useful for triggering serverless functions hosted on Appwrite, allowing users to run custom backend code in response to events or workflows. For example, it can be used to automate data processing, send notifications, or integrate with other services by executing a function with custom input data.

Use Case Examples

  1. Trigger a function to process user data after form submission.
  2. Execute a backend function asynchronously to handle time-consuming tasks without blocking the workflow.

Properties

Name Meaning
Function ID The ID of the function to execute, required to identify which function to run.
Options Additional parameters for the function execution, including request body, async execution flag, HTTP path, method, and headers.

Output

JSON

  • response - The response from the function execution, including any returned data or status information.

Dependencies

  • Appwrite API with endpoint, project ID, and API key credentials

Troubleshooting

  • Ensure the Function ID is correct and the function exists in the Appwrite project.
  • Verify that the API credentials (endpoint, project ID, API key) are valid and have necessary permissions.
  • If executing asynchronously, be aware that the node returns immediately and does not wait for function completion.
  • Check the format of the request body and headers to ensure they are valid JSON.
  • Common errors include authentication failures, invalid function ID, or network connectivity issues.

Links

Discussion