/*
* 1MSG WhatsApp Business API (Public)
*
* Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** All requests require `token` query parameter with JWT or API key. **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
*
* The version of the OpenAPI document: 1.0.0
* Contact: support@1msg.io
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ConversationalAutomation {
/// Enable the automatic welcome message for new conversations
#[serde(rename = "enable_welcome_message", skip_serializing_if = "Option::is_none")]
pub enable_welcome_message: Option<bool>,
/// Ice-breaker prompt strings (max 4, each ≤ 80 characters)
#[serde(rename = "prompts", skip_serializing_if = "Option::is_none")]
pub prompts: Option<Vec<String>>,
/// Slash commands shown in WhatsApp
#[serde(rename = "commands", skip_serializing_if = "Option::is_none")]
pub commands: Option<Vec<models::ConversationalAutomationCommandsInner>>,
}
impl ConversationalAutomation {
pub fn new() -> ConversationalAutomation {
ConversationalAutomation {
enable_welcome_message: None,
prompts: None,
commands: None,
}
}
}