How attach an existing workflow to an existing ass...
# support
a
There's some bugs with workflow : 1-Each time if i update an assistant it will detach from the workflow and i can't link them again. 2-Which results that i can't attach or swap an existing workflow to an existing assistant.
v
Hi there! 👋 I understand you're having trouble with attaching existing workflows to assistants and experiencing bugs where workflows detach after updates. Let me help with what I know. To attach an existing workflow to an existing assistant, you have a few options: Through the UI: 1. After creating an assistant on the Assistants page, switch the model provider to VAPI 2. Click "Create Workflow" when prompted 3. A modal will appear offering the option to create a new workflow or attach to an existing one 4. Choose the option to attach to an existing workflow to proceed to the Workflow Builder Through the API: You can update an assistant's configuration to include a workflow using the VAPI API:
Copy code
curl -X PATCH https://api.vapi.ai/assistant/id \
     -H "Authorization: Bearer YOUR_API_TOKEN" \
     -H "Content-Type: application/json" \
     -d '{
  "model": {
    "provider": "openai",
    "model": "gpt-4o",
    "toolIds": [
      "your-workflow-tool-id-here"
    ]
  }
}'
Regarding the bugs you're experiencing: 1. The workflow detachment after assistant updates is a known issue in Vapi that has been reported by other users. 2. For re-linking after detachment, some users have had success with these workarounds: - Refreshing the page after attaching the workflow - Recreating the assistant - Extracting the workflow from webhooks If you continue to have issues, you might need to create a new assistant and attach the desired workflow to it as an alternative approach. Is there anything else you'd like to know about working with workflows and assistants in Vapi? Sources: - [Vapi Workflows Documentation](https://docs.vapi.ai/workflows) - [Discord Thread 1333975440003563604](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333975440003563604) - [Discord Thread 1344444254939775069](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1344444254939775069)
s
Hey, could you please record a Loom video for the first workflow bug which you have mentioned? I could take a look, try to reproduce, and then share with the team. Regarding the second issue, could you rephrase it? I couldn't understand it properly. If you can share an example, it will help me understand it.
m
@Amine︱Σχ did ["your-workflow-tool-id-here"] work for you?
s
This ticket has been marked as solved, and as a result, you will no longer receive any further responses. Kindly create a new support ticket to escalate your inquiry. 
28 Views