# Merge dialogue function is broken

**URL:** <https://community.mindstudio.ai/t/merge-dialogue-function-is-broken/321>\
**Category:** Bug Reports\
**Created:** [April 5, 2025, 5:07am UTC](https://community.mindstudio.ai/t/merge-dialogue-function-is-broken/321 "2025-04-05T05:07:37Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kuane](https://avatars.discourse-cdn.com/v4/letter/k/e68b1a/32.png) [@Kuane](https://community.mindstudio.ai/u/Kuane)\
**Post date:** [April 5, 2025, 5:07am UTC](https://community.mindstudio.ai/t/merge-dialogue-function-is-broken/321/1 "2025-04-05T05:07:37Z")

</div>

The merge dialogue function is no longer working I think (deep research and podcast agents).

It just runs forever and nothing happens.

---

<div class="post-metadata">

**Author:** ![sean](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sean](https://community.mindstudio.ai/u/sean)\
**Post date:** [April 6, 2025, 1:39pm UTC](https://community.mindstudio.ai/t/merge-dialogue-function-is-broken/321/2 "2025-04-06T13:39:31Z")

</div>

In the agents on the store, or in a copy that you have made? I have not seen any issues looking through the logs of the agents in the store.

---

<div class="post-metadata">

**Author:** ![Kuane](https://avatars.discourse-cdn.com/v4/letter/k/e68b1a/32.png) [@Kuane](https://community.mindstudio.ai/u/Kuane)\
**Post date:** [April 6, 2025, 2:02pm UTC](https://community.mindstudio.ai/t/merge-dialogue-function-is-broken/321/3 "2025-04-06T14:02:29Z")

</div>

I copied it and tried it out. It was working up until about 24 hours ago. Then it stopped working. Everything worked until that block. It just takes forever to merge the different audios.

Is it working on your end?

---

<div class="post-metadata">

**Author:** ![Kuane](https://avatars.discourse-cdn.com/v4/letter/k/e68b1a/32.png) [@Kuane](https://community.mindstudio.ai/u/Kuane)\
**Post date:** [April 6, 2025, 4:33pm UTC](https://community.mindstudio.ai/t/merge-dialogue-function-is-broken/321/4 "2025-04-06T16:33:50Z")

</div>

Just tried it again. My copied agent has the exact code as the original agents. It just won’t merge and produce the one url of the final audio file like before.

---

<div class="post-metadata">

**Author:** ![sean](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sean](https://community.mindstudio.ai/u/sean)\
**Post date:** [April 7, 2025, 1:48am UTC](https://community.mindstudio.ai/t/merge-dialogue-function-is-broken/321/5 "2025-04-07T01:48:48Z")

</div>

The function in the store agent was updated to mix in intro/outro music, as well as burn in cover art and metadata to the mp3 file. If your custom agent is missing those steps, that is probably why it is failing.

If you are not using the additional mixing capabilities, the entire function should just be one line:  
`ai.vars[ai.config.outputVariable] = await ai.concatenateAudio(ai.config.urls);`

---

<div class="post-metadata">

**Author:** ![Kuane](https://avatars.discourse-cdn.com/v4/letter/k/e68b1a/32.png) [@Kuane](https://community.mindstudio.ai/u/Kuane)\
**Post date:** [April 7, 2025, 2:00am UTC](https://community.mindstudio.ai/t/merge-dialogue-function-is-broken/321/6 "2025-04-07T02:00:48Z")

</div>

Hi Sean,

Thanks. It is working now but only if the duration is less than 10 minutes. When I tried to make it longer (less than 100 lines in the dialogue because there is also a 100 iteration limit), it doesn’t merge and just times out.

---

<div class="post-metadata">

**Author:** ![sean](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sean](https://community.mindstudio.ai/u/sean)\
**Post date:** [April 7, 2025, 2:42am UTC](https://community.mindstudio.ai/t/merge-dialogue-function-is-broken/321/7 "2025-04-07T02:42:05Z")

</div>

Can you give it another try with the long one? I just changed some settings.

---

<div class="post-metadata">

**Author:** ![Kuane](https://avatars.discourse-cdn.com/v4/letter/k/e68b1a/32.png) [@Kuane](https://community.mindstudio.ai/u/Kuane)\
**Post date:** [April 7, 2025, 2:55am UTC](https://community.mindstudio.ai/t/merge-dialogue-function-is-broken/321/8 "2025-04-07T02:55:03Z")

</div>

Thx. Should I try less or more than 100 lines? There was an array limit of 100.

---

<div class="post-metadata">

**Author:** ![Kuane](https://avatars.discourse-cdn.com/v4/letter/k/e68b1a/32.png) [@Kuane](https://community.mindstudio.ai/u/Kuane)\
**Post date:** [April 7, 2025, 4:54am UTC](https://community.mindstudio.ai/t/merge-dialogue-function-is-broken/321/9 "2025-04-07T04:54:16Z")

</div>

Just tried it with 89 lines in the dialogue. It didn’t work. The merge dialogue block will keep running and not generate an audio file.

It works when there are only around 60 lines.
