Smileback icon

Smileback

Consume Smileback API using the OpenAPI schema

Actions10

  • Review Actions
  • NPS Response Actions
  • Project Survey Actions
  • CSAT Agents Actions
  • CSAT Boards Actions
  • CSAT Companies Actions
  • CSAT Contacts Actions
  • NPS Campaigns Actions
  • Project Surveys Actions

Overview

This node integrates with the Smileback API to synchronize data related to various resources, including Project Surveys. It fetches records from the Smileback service, supporting pagination and filtering by modification date. This is useful for workflows that need to keep local data in sync with Smileback or trigger actions based on updated survey data.

For the Project Surveys resource with the Sync operation, the node retrieves project survey records, optionally filtered by a "Last Modified Since" timestamp, allowing users to get only recently changed surveys. This can be used to update databases, generate reports, or trigger notifications when new survey data arrives.

Properties

Name Meaning
Last Modified Since Retrieve records modified after this date and time (optional filter to limit results).

Output

The node outputs an array of JSON objects, each representing a single record retrieved from the Smileback API for the selected resource. For the Project Surveys resource, each JSON object corresponds to one project survey record as returned by the API.

If the resource is not supported, the output will contain a JSON object with a message indicating the unsupported resource.

No binary data output is produced by this node.

Example output item structure (simplified):

{
  "id": "string",
  "name": "string",
  "modified_at": "datetime",
  ...
}

(The exact fields depend on the Smileback API response for project surveys.)

Dependencies

  • Requires connection to the Smileback API.
  • Needs credentials including base URL, username, password, client ID, and client secret to obtain an access token.
  • The node uses OAuth2 password grant flow to authenticate and authorize API requests.
  • Requires n8n credential configuration for the Smileback API authentication.

Troubleshooting

  • Authentication errors: If the node fails to obtain an access token, verify that the provided credentials (username, password, client ID, client secret) are correct and have appropriate permissions.
  • Unsupported resource: If the node outputs a message stating "Resource not supported," ensure that the resource name is correctly set to "prj-surveys" for Project Surveys.
  • API rate limits or timeouts: The node includes a small delay between paginated requests; if you encounter rate limiting, consider increasing delays or checking API usage quotas.
  • Empty results: If no records are returned, check the "Last Modified Since" date filter to ensure it matches the expected timeframe.

Links and References

Discussion