Deploy actions server with multiple custom actions file

I just did this, thank you for posting how :slight_smile:

An IMPORTANT thing to note is that you have to include all of your import, and from statements in all of your .py files in the directory.

as an example, I had to edit all 16 of my action files and add this to the top of each one

import logging
from typing import Any, Text, Dict, List, Union, Optional
from rasa_sdk import Action, Tracker
from rasa_sdk.executor import CollectingDispatcher
from rasa_sdk.forms import FormAction
from rasa_sdk.events import SlotSet, AllSlotsReset, Restarted, UserUtteranceReverted, ConversationPaused

logger = logging.getLogger(__name__)

Works like a charm now!

2 Likes