onOffice icon

onOffice

onOffice custom node for n8n

Agentslog → Update

AI-generated

Overview

This node updates an existing Agentslog entry in the onOffice system. It is useful for scenarios where you need to modify details of a specific agentslog record, such as changing the action type, cost, date/time, duration, or adding notes. For example, you might update an agentslog entry to correct the recorded duration of an agent's activity or to add additional notes about the action taken.

Use Case Examples

  1. Updating the cost and duration of an agentslog entry after a review.
  2. Changing the action type and adding a note to an existing agentslog record.

Properties

Name Meaning
Agentslog ID The ID of the agentslog entry to update, used to identify which record to modify.
Data A collection of fields to update in the agentslog entry, including action kind, action type, cost, date/time, duration, features, note, and origin contact.

Output

JSON

  • id - The ID of the updated agentslog entry
  • actionkind - Updated kind of action
  • actiontype - Updated action type
  • cost - Updated cost value
  • datetime - Updated date and time of the action
  • duration - Updated duration in seconds
  • features - Updated features or characteristics
  • note - Updated note or remark
  • origincontact - Updated type of contact

Dependencies

  • Requires an API key credential for onOffice API authentication.

Troubleshooting

  • Ensure the Agentslog ID provided exists; otherwise, the update will fail with a not found error.
  • Validate date and time format as 'Y-m-d H:i:s' to avoid format errors.
  • Check that numeric fields like cost and duration are valid numbers to prevent validation errors.

Discussion