Generate
Text generation endpoints
generate_headlines(request)
async
Extract patterns from remark and generate headlines based on those patterns
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request |
GenerateHeadlinesRequest
|
house data |
required |
Returns:
| Name | Type | Description |
|---|---|---|
response |
GenerateHeadlinesResponse
|
list of headlines |
Source code in app/routers/generate.py
generate_primary_text(request)
async
Generate primary text based on home data
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request |
GeneratePrimaryTextRequest
|
home data |
required |
Returns:
| Name | Type | Description |
|---|---|---|
response |
GeneratePrimaryTextResponse
|
primary text |
Source code in app/routers/generate.py
generate_ad_copy(request)
async
Generate both primary text and headlines based on home data
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request |
GenerateAdCopyRequest
|
home data |
required |
Returns:
| Name | Type | Description |
|---|---|---|
response |
GenerateFacebookAdCopyResponse
|
list of headlines and a primary text |
Source code in app/routers/generate.py
generate_google_ad_copy(request)
async
Generate short headlines, long headlines and descriptions
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request |
GoogleAdCopyRequest
|
home data |
required |
Returns:
| Name | Type | Description |
|---|---|---|
response |
GenerateGoogleAdCopyResponse
|
list of headlines and a primary text |
Source code in app/routers/generate.py
generate_invitation_text(request)
Generate client invitation text.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request |
GenerateInvitationTextRequest
|
collection, agent, client and his preferences data |
required |
Returns:
| Name | Type | Description |
|---|---|---|
response |
GenerateInvitationTextResponse
|
greeting, system introduction, collection information, closing and all email |
Source code in app/routers/generate.py
generate_location_based_text(request)
Generate Location Based on text
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request |
GenerateLocationBasedTextRequest
|
location and words count of the generated text |
required |
Returns:
| Name | Type | Description |
|---|---|---|
response |
GenerateLocationBasedTextResponse
|
title and text of the given location |