---
title: "channel_rule (Odoo)"
description: "itgen_odoo_channel_rule"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/odoo/Odoo.im_livechat.channel_rule
original: https://documentation.invantive.eu/en/datamodels/odoo/Odoo.im_livechat.channel_rule
updated: 2023-03-01T15:29:04Z
license: https://documentation.invantive.eu/en/
---

# channel_rule: Odoo itgen_odoo_channel_rule

`read only` `per partition`

- Catalog: `Odoo`
- Schema: `im_livechat`
- Label: itgen_odoo_channel_rule

Livechat Channel Rules

Can only retrieve data.

## Summary

Channel Rules
        Rules defining access to the channel (countries, and url matching). It also provide the 'auto pop'
        option to open automatically the conversation.

## Table Columns

The columns of the table `channel_rule` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `action` | `varchar2` | Live Chat Button | [x] |  | * 'Show' displays the chat button on the pages. * 'Show with notification' is 'Show' in addition to a floating text just next to the button. * 'Open automatically' displays the button and automatically opens the conversation pane. * 'Hide' hides the chat button on the pages.  |
| `auto_popup_timer` | `int32` | Open automatically timer | [ ] |  | Delay (in seconds) to automatically open the conversation window. Note: the selected action must be 'Open automatically' otherwise this parameter will not be taken into account. |
| `channel_id` | `varchar2` |  | [ ] |  | The channel of the rule |
| `channel_id_label` | `varchar2` |  | [ ] |  | The channel of the rule |
| `chatbot_only_if_no_operator` | `boolean` | Enabled only if no operator | [ ] |  | Enable the bot only if there is no operator available |
| `chatbot_script_id` | `varchar2` |  | [ ] |  |  |
| `chatbot_script_id_label` | `varchar2` |  | [ ] |  |  |
| `country_ids` | `varchar2` |  | [ ] |  | The rule will only be applied for these countries. Example: if you select 'Belgium' and 'United States' and that you set the action to 'Hide', the chat button will be hidden on the specified URL from the visitors located in these 2 countries. This feature requires GeoIP installed on your server. |
| `create_date` | `datetime` | Created on | [ ] |  |  |
| `create_uid` | `varchar2` |  | [ ] |  |  |
| `create_uid_label` | `varchar2` |  | [ ] |  |  |
| `display_name` | `varchar2` | Display Name | [ ] |  |  |
| `id` | `int32` | ID | [ ] |  |  |
| `regex_url` | `varchar2` | URL Regex | [ ] |  | Regular expression specifying the web pages this rule will be applied on. |
| `sequence` | `int32` | Matching order | [ ] |  | Given the order to find a matching rule. If 2 rules are matching for the given url/country, the one with the lowest sequence will be chosen. |
| `write_date` | `datetime` | Last Updated on | [ ] |  |  |
| `write_uid` | `varchar2` |  | [ ] |  |  |
| `write_uid_label` | `varchar2` |  | [ ] |  |  |



## Release Notes

What changed per release in the tables, columns, attributes and capabilities of the driver:

- [Odoo](/en/release-notes/drivers?driver=odoo)

