Evolution API icon

Evolution API

Interact with Evolution API

Actions114

OpenAI → Fetch Sessions

AI-generated

Overview

This node interacts with the OpenAI API to fetch sessions related to a specific bot instance. It is useful for retrieving session data for analysis, monitoring, or managing conversations associated with a bot. For example, a user can input the instance name and bot ID to retrieve all sessions for that bot, which can then be used for further processing or reporting.

Use Case Examples

  1. Fetch all sessions for a given bot instance by providing the instance name and bot ID.
  2. Use the fetched session data to analyze user interactions or bot performance.

Properties

Name Meaning
Instance Name The name of the OpenAI instance to fetch sessions from.
Bot ID The unique identifier of the bot whose sessions are to be fetched.

Output

JSON

  • sessions - An array of session objects fetched from the OpenAI API for the specified bot.

Dependencies

  • OpenAI API access with appropriate credentials

Troubleshooting

  • Ensure the instance name and bot ID are correctly provided and valid.
  • Check API credentials and permissions to access the OpenAI instance and bot data.
  • Common error: 'Unsupported operation.' indicates the operation is not implemented or incorrectly specified.

Discussion