Skip to content

OpenAI conversation: Standardizing API response #317

@AkhileshNegi

Description

@AkhileshNegi

Describe the bug
If the response_id (for a conversation) is wrong in the webhook node, Kaapi sends back this:

%{
  "data" => nil,
  "error" => "Invalid 'previous_response_id': '@results.ress'. Expected an ID that contains letters, numbers, underscores, or dashes, but this value contained additional characters.",
  "metadata" => nil,
  "success" => false
}

The response doesn't return any metadata passed as additional parameters like contact, flow, or other details that we originally sent. Because of this, the flow is crashing — we need the contact and flow details to resume the flow.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions