Plugin Input Fields


Input Fields are UI elements that let users provide data when using your plugin or action in viaSocket. These fields appear in the workflow builder and capture values like:

  • ✏️ Text (e.g., name, email)

  • 🔢 Numbers (e.g., quantity, amount)

  • 📅 Dates (e.g., deadline, birthdate)

  • ✅ Options (e.g., dropdowns, checkboxes)

Each field is tailored to a specific data type, ensuring your plugin receives and processes the right kind of information.


Why They Matter

Input fields make your plugins dynamic and customizable.
For example, a “Send Email” action might include:

  • To: email address

  • Subject: text input

  • Message: long text box

These fields allow users to configure the plugin per use case—without editing code.


Behind the Scenes

When you create a plugin or action, you define these input fields using JSON. Each field has:

  • A key (used in your code, like context.inputData.email)

  • A type (e.g., string, number, date, select)

  • A label (visible to the user)

  • Optional rules: required, placeholder, default value, etc.

📌

AI Field
​The AI Field enables you to integrate AI-powered capabilities into your app's triggers and actions. By adding this field type, you can allow your users to leverage AI for complex tasks without requiring manual intervention.