mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 13:54:02 +00:00
feat(bot): add anonymous feedback flow
This commit is contained in:
@@ -72,6 +72,7 @@ Recommended approach:
|
||||
- `bot_household_id`
|
||||
- `bot_household_chat_id`
|
||||
- `bot_purchase_topic_id`
|
||||
- optional `bot_feedback_topic_id`
|
||||
- optional `bot_parser_model`
|
||||
- optional `bot_mini_app_allowed_origins`
|
||||
|
||||
|
||||
@@ -90,6 +90,9 @@ module "bot_api_service" {
|
||||
var.bot_purchase_topic_id == null ? {} : {
|
||||
TELEGRAM_PURCHASE_TOPIC_ID = tostring(var.bot_purchase_topic_id)
|
||||
},
|
||||
var.bot_feedback_topic_id == null ? {} : {
|
||||
TELEGRAM_FEEDBACK_TOPIC_ID = tostring(var.bot_feedback_topic_id)
|
||||
},
|
||||
var.bot_parser_model == null ? {} : {
|
||||
PARSER_MODEL = var.bot_parser_model
|
||||
},
|
||||
|
||||
@@ -11,6 +11,7 @@ mini_app_image = "europe-west1-docker.pkg.dev/my-gcp-project/household-bot/mini
|
||||
bot_household_id = "11111111-1111-4111-8111-111111111111"
|
||||
bot_household_chat_id = "-1001234567890"
|
||||
bot_purchase_topic_id = 777
|
||||
bot_feedback_topic_id = 778
|
||||
bot_parser_model = "gpt-4.1-mini"
|
||||
bot_mini_app_allowed_origins = [
|
||||
"https://household-dev-mini-app-abc123-ew.a.run.app"
|
||||
|
||||
@@ -104,6 +104,13 @@ variable "bot_purchase_topic_id" {
|
||||
nullable = true
|
||||
}
|
||||
|
||||
variable "bot_feedback_topic_id" {
|
||||
description = "Optional TELEGRAM_FEEDBACK_TOPIC_ID value for bot runtime"
|
||||
type = number
|
||||
default = null
|
||||
nullable = true
|
||||
}
|
||||
|
||||
variable "bot_parser_model" {
|
||||
description = "Optional PARSER_MODEL override for bot runtime"
|
||||
type = string
|
||||
|
||||
Reference in New Issue
Block a user