จัดการ Agent

ตัวแทนทุกคนเป็นของแบรนด์ (ธุรกิจ องค์กร หรือกลุ่ม) ก่อนที่จะสร้างเอเจนต์ได้ คุณต้องสร้างแบรนด์ที่เป็นเจ้าของก่อน แบรนด์เป็นเพียง การจัดระเบียบเพื่อช่วยให้คุณจัดกลุ่มเอเจนต์ที่เกี่ยวข้องไว้ด้วยกัน

ข้อมูลโค้ดในหน้านี้มาจากตัวอย่าง Java และตัวอย่าง Node.js

การสร้างและกำหนดตัวแทน

สร้างเอเจนต์

หากต้องการสร้างเอเจนต์ RBM คุณต้องกำหนดข้อมูลพื้นฐานของเอเจนต์

ดูรายละเอียดเพิ่มเติมได้ที่ brands.agents.create

Node.js

const businessCommunicationsApiHelper =
  require('@google/rbm-businesscommunications');

const privateKey =
  require('../../resources/businesscommunications-service-account-credentials.json');

businessCommunicationsApiHelper.initBusinessCommunucationsApi(privateKey);

const newAgentDetails = {
  displayName: 'My new agent',
  name: brandId + '/agents/',
  rcsBusinessMessagingAgent: {
    description: 'This is the agent description that will be displayed in the Agent info tab in Messages',
    logoUri: 'https://agent-logos.storage.googleapis.com/_/kt90w53vzw2QSxK6PG1uCeJf',
    heroUri: 'https://agent-logos.storage.googleapis.com/_/kt90vzob74GQcfeHoEQbVRTP',
    phoneNumbers: [
      {
        phoneNumber: {
          number: '+12223334444'
        },
        label: 'Call support'
      }
    ],
    // It's recommended to provide at least one contact method (phone or email) because
    // this is required for launch. For any phone, email, or website provided, a corresponding label
    // must also be included.
    privacy: {
      "uri": 'https://policies.google.com/privacy',
      "label": 'Our privacy policy'
    },
    termsConditions: {
      "uri": 'https://policies.google.com/terms',
      "label": 'Our Terms and Conditions'
    },
    color: '#0B78D0',
    billingConfig: { billingCategory: 'BASIC_MESSAGE' },
    agentUseCase: 'TRANSACTIONAL',
    hostingRegion: 'EUROPE'
  }
};

businessCommunicationsApiHelper.createAgent(brandId, newAgentDetails).then((response) => {

}).catch((err) => {
  console.log(err);
});

Java

Brand brand = api.getBrand(brandId);
logger.info("Brand to operate on: " + brand);
String displayName = flags.getOrDefault("agent_name", "Test RBM Agent: " + now.getSecond());
String suffix = flags.getOrDefault("agent_data_suffix", "API");
RcsBusinessMessagingAgent agentData = AgentFactory.createRbmAgent(suffix);
Agent agent = api.createRbmAgent(brand, displayName, agentData);
logger.info("RBM agent has been created: " + agent);

โค้ดนี้จะแสดงข้อมูลตัวแทนใหม่และตัวระบุที่ไม่ซ้ำกัน ที่กำหนดให้กับตัวแทน

{
  name: 'brands/40bd963f-ff92-425c-b273-8f0892d2d017/agents/my_new_agent_dxuewtvy_agent',
  displayName: 'My new agent',
  rcsBusinessMessagingAgent: {
    description: 'This is the agent description that will be displayed in the Agent info tab in Messages',
    logoUri: 'https://agent-logos.storage.googleapis.com/_/kt90w53vzw2QSxK6PG1uCeJf',
    heroUri: 'https://agent-logos.storage.googleapis.com/_/kt90vzob74GQcfeHoEQbVRTP',
    phoneNumbers: [ [Object] ],
    privacy: {
      uri: 'https://policies.google.com/privacy',
      label: 'Our privacy policy'
    },
    termsConditions: {
      uri: 'https://policies.google.com/terms',
      label: 'Our Terms and Conditions'
    },
    color: '#0B78D0',
    billingConfig: { billingCategory: 'BASIC_MESSAGE' },
    agentUseCase: 'MULTI_USE',
    hostingRegion: 'EUROPE'
  }
}

ค้นหาคำจำกัดความของเอเจนต์

คุณเรียกข้อมูล Agent ได้โดยระบุตัวระบุที่ไม่ซ้ำกัน (name) ดูรายละเอียดเพิ่มเติมได้ที่ brands.agents.list

Node.js

const businessCommunicationsApiHelper =
  require('@google/rbm-businesscommunications');

const privateKey =
  require('../../resources/businesscommunications-service-account-credentials.json');

businessCommunicationsApiHelper.initBusinessCommunucationsApi(privateKey);

// Retrieve details of the first agent (if one has already been created)
businessCommunicationsApiHelper.getAgent(agent.name).then((response) => {

}).catch((err) => {
  console.log(err);
});

Java

Agent agent = api.getAgent(flags.get("agent_id"));
logger.info("Agent: " + agent);

โค้ดนี้จะแสดงข้อมูลตัวแทน

{
  name: 'brands/40bd963f-ff92-425c-b273-8f0892d2d017/agents/my_new_agent_dxuewtvy_agent',
  displayName: 'My new agent',
  rcsBusinessMessagingAgent: {
    description: 'This is the agent description that will be displayed in the Agent info tab in Messages',
    logoUri: 'https://agent-logos.storage.googleapis.com/_/kt90w53vzw2QSxK6PG1uCeJf',
    heroUri: 'https://agent-logos.storage.googleapis.com/_/kt90vzob74GQcfeHoEQbVRTP',
    phoneNumbers: [ [Object] ],
    privacy: {
      uri: 'https://policies.google.com/privacy',
      label: 'Our privacy policy'
    },
    termsConditions: {
      uri: 'https://policies.google.com/terms',
      label: 'Our Terms and Conditions'
    },
    color: '#0B78D0',
    billingConfig: { billingCategory: 'BASIC_MESSAGE' },
    agentUseCase: 'MULTI_USE',
    hostingRegion: 'EUROPE'
  }
}

การยืนยันและการเปิดตัว

ส่งข้อมูลการยืนยัน

การยืนยันแบรนด์ เป็นข้อกำหนดสำหรับการเปิดตัวตัวแทน คุณต้องส่งข้อมูลการยืนยันก่อน ส่งคำขอเปิดตัว โปรดทราบว่าคุณไม่จำเป็นต้องรอการอนุมัติแบรนด์ ก่อนที่จะส่งคำขอเปิดตัว การอนุมัติแบรนด์เป็นส่วนหนึ่งของกระบวนการอนุมัติ การเปิดตัว

ดูรายละเอียดเพิ่มเติมได้ที่ brands.agents.requestVerification

Node.js

const businessCommunicationsApiHelper =
  require('@google/rbm-businesscommunications');

const privateKey =
  require('../../resources/businesscommunications-service-account-credentials.json');

businessCommunicationsApiHelper.initBusinessCommunucationsApi(privateKey);

let agentVerificationContact = {
  partnerName: 'Alice',
  partnerEmailAddress: 'alice@thepartner.com',
  brandContactName: 'Bob',
  brandContactEmailAddress: 'bob@thebrand.com',
  brandWebsiteUrl: 'https://thebrand.com/'
};

businessCommunicationsApiHelper.verifyAgent(agent.name, agentVerificationContact).then((response) => {

}).catch((err) => {
  console.log(err);
});

Java

AgentVerificationContact contact = AgentFactory.createRbmAgentVerification();
AgentVerification verification = api.requestAgentVerification(agent.getName(), contact);
logger.info("Verification requested: " + verification);

โค้ดนี้จะแสดงข้อมูลการยืนยัน

{
  "name": "brands/40bd963f-ff92-425c-b273-8f0892d2d017/agents/my_new_agent_ciymyd2b_agent",
  "verificationState": "VERIFICATION_STATE_UNVERIFIED",
  "agentVerificationContact": {
    "partnerName": "Alice",
    "partnerEmailAddress": "alice@thepartner.com",
    "brandContactName": "Bob",
    "brandContactEmailAddress": "bob@thebrand.com",
    "brandWebsiteUrl": "https://thebrand.com/"
  }
}

ค้นหาข้อมูลการยืนยันของตัวแทน

คุณสามารถดึงข้อมูลสถานะการยืนยันแบรนด์ของตัวแทนได้ ดูรายละเอียดเพิ่มเติมได้ที่ brands.agents.getVerification

Node.js

const businessCommunicationsApiHelper =
  require('@google/rbm-businesscommunications');

const privateKey =
  require('../../resources/businesscommunications-service-account-credentials.json');

businessCommunicationsApiHelper.initBusinessCommunucationsApi(privateKey);

businessCommunicationsApiHelper.getAgentVerification(agent.name).then((response) => {

}).catch((err) => {
  console.log(err);
});

Java

AgentVerification verification = api.getAgentVerification(agent.getName());
logger.info("RBM agent verification: " + verification);

โค้ดนี้จะแสดงสถานะการยืนยันและข้อมูลพาร์ทเนอร์

{
  "name": "brands/40bd963f-ff92-425c-b273-8f0892d2d017/agents/my_new_agent_ciymyd2b_agent/verification",
  "verificationState": "VERIFICATION_STATE_UNVERIFIED",
  "agentVerificationContact": {
    "partnerName": "John Doe",
    "partnerEmailAddress": "john.doe@gmail.com",
    "brandContactName": "Bob",
    "brandContactEmailAddress": "bob@brand.com",
    "brandWebsiteUrl": "https://www.brand.com"
  }
}

ส่งตัวแทนเพื่อเปิดตัว

คุณส่ง Agent เพื่อเปิดตัวในผู้ให้บริการอย่างน้อย 1 รายได้ Google เป็นผู้จัดการการเปิดตัวบางรายการ ส่วนผู้ให้บริการจะเป็นผู้จัดการการเปิดตัวอื่นๆ โดยตรง การเปิดตัวที่ผู้ให้บริการจัดการอาจมีข้อกำหนดเพิ่มเติม ดูข้อมูลเพิ่มเติมได้ที่ การเปิดตัวที่ Google จัดการเทียบกับการเปิดตัวที่ผู้ให้บริการจัดการ

ก่อนที่จะเปิดตัวแทนเป็นครั้งแรก คุณต้องส่งข้อมูลการยืนยัน ซึ่งจะช่วยให้ Google, ผู้ให้บริการ หรือทั้ง 2 ฝ่ายสามารถยืนยันกับผู้ติดต่อของแบรนด์ว่าคุณได้รับอนุญาตให้จัดการตัวแทนในนามของแบรนด์ ดูรายละเอียดได้ที่การยืนยันตัวตนของแบรนด์

เมื่อส่งข้อมูลการยืนยันและทำตามข้อกำหนดเบื้องต้นในการเปิดตัวแล้ว คุณจะส่งคำขอเปิดตัวได้

คุณส่ง Agent เพื่อเปิดตัวในผู้ให้บริการอย่างน้อย 1 รายได้ คุณต้องส่งแบบสอบถามการเปิดตัวที่กรอกข้อมูลครบถ้วนเป็นส่วนหนึ่งของคำขอเปิดตัว ดูรายละเอียดเพิ่มเติมได้ที่ brands.agents.requestLaunch

Node.js

const businessCommunicationsApiHelper =
  require('@google/rbm-businesscommunications');

const privateKey =
  require('../../resources/businesscommunications-service-account-credentials.json');

businessCommunicationsApiHelper.initBusinessCommunucationsApi(privateKey);
  
let agentLaunch = {
  questionnaire: {
    contacts: [
      {
        name: 'James Bond',
        title: 'Mr 0 0 7',
        email: 'someone@somewhere.com'
      }
    ],
    optinDescription: 'Users accepted our terms of service online.',
    triggerDescription: 'We are reaching preregistered users',
    interactionsDescription: 'This agent does not do much.',
    optoutDescription: 'Reply stop and we stop.',
    agentAccessInstructions: 'This is a a simple agent that reaches registered users.',
    videoUris: [
      'https://www.google.com/a/video'
    ],
    screenshotUris: [
      'https://www.google.com/a/screenshot'
    ]
  },
  launchDetails: {}
};

businessCommunicationsApiHelper.launchAgent(agent.name, agentLaunch).then((response) => {

}).catch((err) => {
  console.log(err);
});

Java

Optional<Questionnaire> q = Optional.of(AgentFactory.createRbmQuestionnaire());
AgentLaunch launch = api.requestRbmAgentLaunch(agent.getName(), regionIds, q);
logger.info("RBM agent updated launch: " + launch);

โค้ดนี้จะแสดงข้อมูลการเปิดตัวเอเจนต์

{
  "name": "brands/40bd963f-ff92-425c-b273-8f0892d2d017/agents/my_new_agent_7jo0trhw_agent/launch",
  "rcsBusinessMessaging": {
    "questionnaire": {
      "contacts": [
        {
          "name": "James Bond",
          "title": "Mr O O 7",
          "email": "someone@somewhere.com"
        }
      ],
      "optinDescription": "Users accepted our terms of service online.",
      "triggerDescription": "We are reaching preregistered users",
      "interactionsDescription": "This agent does not do much.",
      "optoutDescription": "Reply stop and we stop.",
      "agentAccessInstructions": "This is a a simple agent that reaches registered users.",
      "videoUris": [
        "https://www.google.com/a/video"
      ],
      "screenshotUris": [
        "https://www.google.com/a/screenshot"
      ]
    },
    "launchDetails": {
      "/v1/regions/some-carrier": {
        "launchState": "LAUNCH_STATE_PENDING",
        "updateTime": "2023-02-24T15:02:13.903554Z"
      }
    },
    "launchRegion": "NORTH_AMERICA"
  }
}

โปรดทราบว่าเราเลิกใช้งาน launchRegion แล้วและมีกำหนดจะนำออกในเร็วๆ นี้

เปิดตัวเอเจนต์ในภูมิภาคอย่างน้อย 1 ภูมิภาค

หากต้องการเปิดตัวเอเจนต์ในภูมิภาคอย่างน้อย 1 แห่ง เมื่อเอเจนต์ยังไม่ได้เปิดตัว มาก่อน ให้เรียกใช้เมธอด requestLaunch ด้วยออบเจ็กต์ที่มีแมปของคีย์เท่านั้นสำหรับทุกภูมิภาคที่คุณต้องการให้เอเจนต์เปิดตัว การใช้แผนที่ว่างเปล่า ช่วยให้รักษาความสอดคล้องของ API ภายในในออบเจ็กต์ที่ใช้ระหว่างการเรียก API ได้

curl -X POST \
"https://businesscommunications.googleapis.com/v1/brands/BRAND_ID/agents/AGENT_ID:requestLaunch" \
-H "Content-Type: application/json" \
-H "$(oauth2l header --json PATH_TO_SERVICE_ACCOUNT_KEY businesscommunications)" \
-d "{
  'name': 'brands/BRAND_ID/agents/AGENT_ID/launch',
  'rcsBusinessMessaging': {
    'questionnaire': {
      'contacts': [
        {
          'name': 'Contact person 000',
          'title': 'Contact manager 000',
          'email': 'user@domain.com000'
        }
      ],
      'optinDescription': 'Opt-in description 0',
      'triggerDescription': 'Trigger description 0',
      'optoutDescription': 'Opt-out description 0',
      'agentAccessInstructions': 'Agent instructions 0',
      'videoUris': [
        'https://www.youtube.com/watch?v=NN75im_us4k'
      ],
      'screenshotUris': [
        'https://www.youtube.com/watch?v=NN75im_us4k'
      ]
    },
    'launchDetails': {
      '/v1/regions/fi-rcs': {}
    }
  }
}"

หากต้องการเปิดตัวเอเจนต์ในภูมิภาคอย่างน้อย 1 แห่ง (เมื่อเอเจนต์เปิดตัวก่อนหน้านี้) ให้เรียกใช้เมธอด requestLaunch ด้วยออบเจ็กต์ที่มีแมปของคีย์เท่านั้นของทุกภูมิภาคที่เอเจนต์เปิดตัวอยู่แล้วและ ทุกภูมิภาคที่เอเจนต์ต้องการเปิดตัว การใช้แผนที่ว่างช่วยให้รักษาความสอดคล้องของ API ภายในในออบเจ็กต์ที่ใช้ระหว่างการเรียก API ได้

curl -X POST \
"https://businesscommunications.googleapis.com/v1/brands/BRAND_ID/agents/AGENT_ID:requestLaunch" \
-H "Content-Type: application/json" \
-H "$(oauth2l header --json PATH_TO_SERVICE_ACCOUNT_KEY businesscommunications)" \
-d "{
  'name': 'brands/BRAND_ID/agents/AGENT_ID/launch',
  'rcsBusinessMessaging': {
    'launchDetails': {
      '/v1/regions/fi-rcs': {},
      '/v1/regions/vodafone-idea-india': {}
    }
  }
}"

หากเอเจนต์เรียกใช้เมธอด requestLaunch แต่ไม่ได้ระบุภูมิภาคทั้งหมด ที่เปิดตัวเอเจนต์แล้วเป็นคีย์ ระบบจะแสดงข้อผิดพลาด 400 - Bad Request

ค้นหาสถานะการเปิดตัวของตัวแทน

คุณสามารถดึงสถานะการเปิดตัวปัจจุบันของเอเจนต์ได้ ดูรายละเอียดเพิ่มเติมได้ที่ brands.agents.getLaunch

Node.js

const businessCommunicationsApiHelper =
  require('@google/rbm-businesscommunications');

const privateKey =
  require('../../resources/businesscommunications-service-account-credentials.json');

businessCommunicationsApiHelper.initBusinessCommunucationsApi(privateKey);

businessCommunicationsApiHelper.getAgentLaunch(agent.name).then((response) => {

}).catch((err) => {
  console.log(err);
});

Java

AgentLaunch launch = api.getAgentLaunch(agent.getName());
logger.info("RBM agent launch: " + launch);

cURL

curl \
"https://businesscommunications.googleapis.com/v1/brands/BRAND_ID/agents/AGENT_ID/launch" \
-H "Content-Type: application/json" \
-H "$(oauth2l header --json PATH_TO_SERVICE_ACCOUNT_KEY businesscommunications)"

หากผู้ให้บริการปฏิเสธการเปิดตัว พาร์ทเนอร์จะขอเปิดตัวกับผู้ให้บริการอีกครั้งได้ (คำขอมีสถานะUNSPECIFIED และแบ็กเอนด์มีสถานะREJECTED )

โค้ดนี้จะแสดงข้อมูลการเปิดตัวและสถานะการเปิดตัวสำหรับ ผู้ให้บริการเป้าหมายแต่ละราย

{
  "name": "brands/40bd963f-ff92-425c-b273-8f0892d2d017/agents/my_new_agent_7jo0trhw_agent/launch",
  "rcsBusinessMessaging": {
    "questionnaire": {
      "contacts": [
        {
          "name": "James Bond",
          "title": "Mr O O 7",
          "email": "someone@somewhere.com"
        }
      ],
      "optinDescription": "Users accepted our terms of service online.",
      "triggerDescription": "We are reaching preregistered users",
      "interactionsDescription": "This agent does not do much.",
      "optoutDescription": "Reply stop and we stop.",
      "agentAccessInstructions": "This is a a simple agent that reaches registered users.",
      "videoUris": [
        "https://www.google.com/a/video"
      ],
      "screenshotUris": [
        "https://www.google.com/a/screenshot"
      ]
    },
    "launchDetails": {
      "/v1/regions/some-carrier": {
        "launchState": "LAUNCH_STATE_PENDING",
        "updateTime": "2023-02-24T15:02:13.903554Z"
      }
    },
    "launchRegion": "NORTH_AMERICA"
  }
}

โปรดทราบว่าเราเลิกใช้งาน launchRegion แล้วและมีกำหนดจะนำออกในเร็วๆ นี้

เพิ่มผู้ให้บริการเพิ่มเติมในการเปิดตัวของเอเจนต์

หลังจากดึงข้อมูลการเปิดตัวปัจจุบันของเอเจนต์โดยใช้ brands.agents.getLaunch การเรียก API แล้ว คุณจะเพิ่มผู้ให้บริการเป้าหมายเพื่อ ขยายการเข้าถึงของเอเจนต์ได้ ดูรายละเอียดเพิ่มเติมได้ที่ brands.agents.updateLaunch

Node.js

const businessCommunicationsApiHelper =
  require('@google/rbm-businesscommunications');

const privateKey =
  require('../../resources/businesscommunications-service-account-credentials.json');

businessCommunicationsApiHelper.initBusinessCommunucationsApi(privateKey);');

// To launch an agent to further carriers, we need to first obtain the existing
// launch information and extend it with the new carrier(s).
businessCommunicationsApiHelper.getAgentLaunch(agent.name).then((response) => {
  let existingLaunch = response.data.rcsBusinessMessaging;

  // Now we add the new carrier to the existing launch
  existingLaunch.launchDetails[config.launchCarrier2] = null;

  // And we submit the launch again
  businessCommunicationsApiHelper.launchAgent(agent.name, existingLaunch).then((response) => {
    console.log('Launch details are:');
    console.log(JSON.stringify(response.data, null, 2));
  }).catch((err) => {
    console.log(err);
  });
}).catch((err) => {
  console.log(err);
});

โค้ดนี้จะแสดงข้อมูลการเปิดตัวที่อัปเดตแล้ว

{
  "name": "brands/40bd963f-ff92-425c-b273-8f0892d2d017/agents/my_new_agent_7jo0trhw_agent/launch",
  "rcsBusinessMessaging": {
    "questionnaire": {
      "contacts": [
        {
          "name": "James Bond",
          "title": "Mr O O 7",
          "email": "someone@somewhere.com"
        }
      ],
      "optinDescription": "Users accepted our terms of service online.",
      "triggerDescription": "We are reaching preregistered users",
      "interactionsDescription": "This agent does not do much.",
      "optoutDescription": "Reply stop and we stop.",
      "agentAccessInstructions": "This is a a simple agent that reaches registered users.",
      "videoUris": [
        "https://www.google.com/a/video"
      ],
      "screenshotUris": [
        "https://www.google.com/a/screenshot"
      ]
    },
    "launchDetails": {
      "/v1/regions/some-carrier": {
        "launchState": "LAUNCH_STATE_PENDING",
        "updateTime": "2023-02-24T15:02:13.903554Z"
      },
      "/v1/regions/another-carrier": {
        "launchState": "LAUNCH_STATE_PENDING",
        "updateTime": "2023-02-24T15:04:50.456552Z"
      }
    },
    "launchRegion": "NORTH_AMERICA"
  }
}

หลังเปิดตัวและการบำรุงรักษา

แสดงรายการตัวแทนทั้งหมดที่สร้างขึ้นสำหรับแบรนด์

นักพัฒนาแอปสามารถดึงรายการเอเจนต์ทั้งหมดที่สร้างขึ้นสำหรับแบรนด์ได้ ดูรายละเอียดเพิ่มเติมได้ที่ brands.agents.list

Node.js

const businessCommunicationsApiHelper =
  require('@google/rbm-businesscommunications');

const privateKey =
  require('../../resources/businesscommunications-service-account-credentials.json');

businessCommunicationsApiHelper.initBusinessCommunucationsApi(privateKey);

businessCommunicationsApiHelper.listAgents(brand.name).then((response) => {
  console.log('Current agents are:');
  console.log(response.data);
  datastore.saveJsonData('agents', response.data.agents);
}).catch((err) => {
  console.log(err);
});

Java

Brand brand = api.getBrand(brandId);
logger.info("Brand: " + brand);
ListAgentsResponse response = api.listAllAgents(brand);
List<Agent> agents = response.getAgents().stream()
  .sorted(Comparator.comparing(Agent::getName)).collect(Collectors.toList());
logger.info(String.format("Found %d agents", response.getAgents().size()));
for (Agent agent : agents) {
  logger.info(String.format("Agent [%s]: '%s'", agent.getName(), agent.getDisplayName()));
}

โค้ดนี้จะแสดงรายการตัวแทนทั้งหมดที่เป็นของแบรนด์

{
  agents: [
    {
      name: 'brands/40bd963f-ff92-425c-b273-8f0892d2d017/agents/my_new_agent_4fpd1psz_agent',
      displayName: 'My new agent',
      rcsBusinessMessagingAgent: [Object]
    },
    {
      name: 'brands/40bd963f-ff92-425c-b273-8f0892d2d017/agents/my_new_agent_ciymyd2b_agent',
      displayName: 'My second agent',
      rcsBusinessMessagingAgent: [Object]
    },
    {
      name: 'brands/40bd963f-ff92-425c-b273-8f0892d2d017/agents/my_new_agent_helof85o_agent',
      displayName: 'My third agent',
      rcsBusinessMessagingAgent: [Object]
    }
  ]
}

ยกเลิกการเปิดตัวเอเจนต์

หากต้องการยกเลิกการเปิดตัวเอเจนต์จากภูมิภาคใดภูมิภาคหนึ่ง ให้เรียกใช้เมธอด updateLaunch ระบุภูมิภาคเป้าหมายในแผนที่ของการเรียก และตั้งค่า launchState เป็น LAUNCH_STATE_UNLAUNCHED

curl -X PATCH \
"https://businesscommunications.googleapis.com/v1/brands/BRAND_ID/agents/AGENT_ID" \
-H "Content-Type: application/json" \
-H "$(oauth2l header --json PATH_TO_SERVICE_ACCOUNT_KEY businesscommunications)"\
-d "{
  'rcsBusinessMessaging': {
    'launchDetails': {
      '/v1/regions/fi-rcs': {
        'launchState': 'LAUNCH_STATE_UNLAUNCHED'
      },
      '/v1/regions/vodafone-idea-india': {
        'launchState': 'LAUNCH_STATE_UNLAUNCHED'
      }
    }
  }
}"

ลบตัวแทน

ด้วยเหตุผลด้านความปลอดภัย คุณไม่สามารถลบเอเจนต์ RBM ได้อีกต่อไป โปรดติดต่อทีมสนับสนุนของ RBM เพื่อขอรับความช่วยเหลือ