Generate Adoption Profile Flow
Summary
The Generate Adoption Profile Flow in Salesforce is designed to send a request to OpenAI via the AnimalOS Generate Content Apex class. This flow is executed when a user selects the Generate Adoption Profile action on an Animal record.
Flow Configuration
The flow is structured to gather the necessary details from the Animal record and send a request to OpenAI to generate an Adoption Profile. The response is then captured and stored within the relevant Animal record field.
📷 Salesforce Flow used to send a request to OpenAI
Key Flow Components
The following elements are configured within the flow:
Output Field: Specifies where the generated adoption profile response from OpenAI will be stored.
Record ID: Passes the unique identifier of the Animal record to ensure the request is linked to the correct data.
Request: Defines the prompt sent to OpenAI, instructing it to generate an adoption profile.
Source Fields: Includes relevant field values from the Animal record (e.g., Name, Breed, Age) to provide context for the AI-generated content.
Extending the Flow
🔹 Tip: Additional flows can be created for other AI-generated content requests, such as Generating Behaviour Summaries, Health Notes, or Animal Descriptions. These flows can be configured in a similar manner to capture responses within targeted fields.
By leveraging this flow, AnimalOS automates the process of generating personalised adoption profiles, ensuring consistency and efficiency in adoption listings.