# Add multiple departments to Twilio Omnichannel

**URL:** <https://forums.rocket.chat/t/add-multiple-departments-to-twilio-omnichannel/7481>\
**Category:** Development\
**Created:** [July 7, 2020, 1:01pm UTC](https://forums.rocket.chat/t/add-multiple-departments-to-twilio-omnichannel/7481 "2020-07-07T13:01:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jersonjunior](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/jersonjunior/32/1840_2.png) [@jersonjunior](https://forums.rocket.chat/u/jersonjunior)\
**Post date:** [July 7, 2020, 1:01pm UTC](https://forums.rocket.chat/t/add-multiple-departments-to-twilio-omnichannel/7481/1 "2020-07-07T13:01:51Z")

</div>

I’m developing a chatbot with AI and I need to redirect to certain departments depending on the flow, but I can only send it to the default department of Twilio Omnichannel.

I would like to know if it is possible to somehow direct to several departments using the extra fields of the Twilio payload?

I managed to use customFields in the extra fields but the department parameter I can’t handle after sending the request to rocketchat, does anyone have an idea how to implement multiple departments?

---

<div class="post-metadata">

**Author:** ![bmwas](https://avatars.discourse-cdn.com/v4/letter/b/46a35a/32.png) [@bmwas](https://forums.rocket.chat/u/bmwas)\
**Post date:** [December 25, 2020, 6:05am UTC](https://forums.rocket.chat/t/add-multiple-departments-to-twilio-omnichannel/7481/2 "2020-12-25T06:05:26Z")

</div>

@jersonjunior Did you get anything going on this? Is this a possibility?

---

<div class="post-metadata">

**Author:** ![jersonjunior](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/jersonjunior/32/1840_2.png) [@jersonjunior](https://forums.rocket.chat/u/jersonjunior)\
**Post date:** [January 4, 2021, 1:21pm UTC](https://forums.rocket.chat/t/add-multiple-departments-to-twilio-omnichannel/7481/3 "2021-01-04T13:21:30Z")

</div>

I had to change a few things in the code to support multiple departments.
