AI Replies

Generate AI Reply

Generates an AI reply using an assistant based on a customer identifier

Docs

post/user/ai/generate-reply

Request

  • Base URL: https://app.famulor.de/api
  • URL: https://app.famulor.de/api/user/ai/generate-reply
  • Auth: HTTP bearer

Request body

assistant_idinteger required

The ID of the assistant to use for reply generation. Must belong to your account.

customer_identifierstring required

A unique identifier for the customer. This is used to maintain conversation context across multiple messages.

Examples: Phone number, email address, CRM contact ID, Facebook user ID.

Maximum length: 255 characters.

Important: Always use the same format for the same customer to ensure context is correctly mapped.

messagestring required

The customer's message to reply to.

Response

OK

successboolean

Will be false when an error occurs

conversation_idstring

The UUID of the conversation. Use this to track or reference the conversation later.

customer_identifierstring

The customer identifier provided in the request

replystring

The AI-generated reply to the customer message

ai_disabledboolean

Indicates whether AI replies are disabled for this conversation (e.g. due to manual takeover)

errorstring

Error message describing what went wrong

error_codestring

Machine-readable error code. Possible values:

  • ASSISTANT_NOT_FOUND - The assistant ID is invalid or does not belong to your account
  • INSUFFICIENT_BALANCE - Your account balance is too low to process the message

Changes

No recorded changes to this operation across all 1 revision of this API.