Evolution API icon

Evolution API

Interact with Evolution API

Overview

The "Atualizar Status" operation for the "Perfil" (Profile) resource in this custom n8n node allows you to update the status message of a user profile via the Evolution API. This is useful in scenarios where you need to programmatically change a user's status, such as reflecting their current activity, availability, or any other relevant information. For example, you could use this node to automatically set a status like "In a meeting" or "On vacation" based on calendar events or workflow triggers.

Properties

Display Name Type Description
Nome Da Instância String Digite o nome da instância (Enter the instance name). Required.
Status String Novo status do perfil (máximo 139 caracteres). Required.
  • Nome Da Instância: The name of the instance where the profile exists.
  • Status: The new status message for the profile, limited to 139 characters.

Output

The output will be a JSON object (or an array of objects) containing the result of the status update operation. The exact structure depends on the Evolution API's response, but typically it would include fields indicating success, updated status, and possibly metadata about the profile.

Example output (structure may vary):

[
  {
    "success": true,
    "profileId": "12345",
    "status": "Novo status definido com sucesso"
  }
]

Dependencies

  • External Service: Requires access to the Evolution API.
  • API Key/Credentials: You must configure valid Evolution API credentials in n8n under the credential type evolutionApi.
  • n8n Configuration: No additional configuration required beyond setting up credentials.

Troubleshooting

  • Common Issues:

    • Missing or invalid credentials: Ensure that the Evolution API credentials are correctly configured in n8n.
    • Exceeding status length: The "Status" property must not exceed 139 characters.
    • Unsupported operation/resource: If you select an unsupported combination, the node will throw an error.
  • Error Messages:

    • "Operação não suportada.": This means the selected operation is not supported for the chosen resource. Double-check your resource and operation selection.
    • Credential errors: If authentication fails, ensure your API key is correct and has sufficient permissions.

Links and References

Discussion