WiizoChat icon

WiizoChat

Integração completa com API Wiizo - Mensagens, contatos, tickets, empresas, tags e agendamentos

Overview

The node "WiizoChat" provides a comprehensive integration with the Wiizo API, enabling automation of various communication and management tasks such as sending messages (text, media, interactive lists), managing contacts, tickets, companies, tags, and scheduling messages.

Specifically, the "🏢 Criar Empresa" (Create Company) operation allows users to create a new company record in the Wiizo system by providing essential company details and subscription plan information.

This node is beneficial for businesses that want to automate customer relationship management, ticketing, and messaging workflows within the Wiizo platform. For example, it can be used to automatically onboard new companies into the system when they sign up via a web form or CRM trigger.

Properties

Name Meaning
Nome da Empresa The name of the company to be created.
Email da Empresa The email address associated with the company.
Telefone da Empresa The phone number of the company.
Senha Password for the company account (input is masked).
Status The status of the company: "Ativo" (active) or "Inativo" (inactive).
ID do Plano Numeric ID representing the subscription plan assigned to the company.
Data de Vencimento Expiration date of the company's subscription plan.
Recorrência Recurrence type of the subscription: "Mensal" (monthly) or "Anual" (annual).
Documento Company's document identifier (CPF or CNPJ).
Método de Pagamento Payment method used by the company (default is "cartão de crédito" - credit card).
Nome do Usuário da Empresa Username associated with the company user.

Output

The output JSON contains the response from the Wiizo API after attempting to create a company. This typically includes confirmation details about the newly created company or error information if the creation failed.

Example structure (simplified):

{
  "id": 123,
  "name": "Company Name",
  "email": "company@example.com",
  "phone": "1234567890",
  "status": "true",
  "planId": 1,
  "dueDate": "2024-12-31T23:59:59Z",
  "recurrence": "mensal",
  "document": "12345678900",
  "paymentMethod": "cartão de crédito",
  "companyUserName": "user123"
}

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for authenticating with the Wiizo API.
  • The node uses HTTP requests to communicate with the Wiizo API endpoints.
  • The base URL for the API is obtained from the credentials configuration.
  • Proper network access to the Wiizo API endpoint is necessary.

Troubleshooting

  • Missing Credentials: If the API key credential is not set or invalid, the node will throw an error indicating credentials are not found.
  • Invalid Input Data: Required fields like company name, email, phone, password, plan ID, due date, and username must be provided; missing these will cause API errors.
  • API Errors: The Wiizo API may return errors for invalid plan IDs, expired tokens, or malformed requests. Check the error message returned in the node output.
  • Date Format: Ensure the due date is provided in a valid ISO 8601 datetime format.
  • Network Issues: Connectivity problems to the Wiizo API endpoint will cause request failures.

To resolve issues:

  • Verify all required input properties are correctly filled.
  • Confirm the API key credential is configured and valid.
  • Check network connectivity and firewall settings.
  • Review the exact error message returned by the node for specific guidance.

Links and References

Discussion